Re: Calculating days, hours, minutes ago
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57518
interpreted = N
texte = Maybe something here will help you.http://www.brainscansoftware.com/brainepoch.htmlHas anyone seen this before? It looks like there is some pretty usefulsnippets.Thank You Brian and if I use your stuff, I will donate!Sal D'Anna-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of GaryKrockoverSent: 2004-04-26 12:38 PMTo: WebDNA TalkSubject: Calculating days, hours, minutes agoWhat's the best way to calculate the time difference between 2 dates/times?I have stored in a db, pdate as mm/dd/yyyy and ptime as hh:mm:ss. I'd like to calculate and display the time lapse between the current system date/time and the pdate/ptime as in "posted # days, # hours # minutes ago".I've got some convoluted code where I change the date to days since and subtract those and then subtract the times. The days is no problem, however the hours is a problem if the ptime is a time ahead of the current time.I know this has come up before but the archives are crawling at themoment....Thanks,GJK -------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- Re: Calculating days, hours, minutes ago ( Brian Fries 2004)
- Re: Calculating days, hours, minutes ago - SOLUTION ( Gary Krockover 2004)
- Re: Calculating days, hours, minutes ago ( Gary Krockover 2004)
- Re: Calculating days, hours, minutes ago ( "Tom Duke" 2004)
- Re: Calculating days, hours, minutes ago ( Donovan Brooke 2004)
- Re: Calculating days, hours, minutes ago ( Donovan Brooke 2004)
- Re: Calculating days, hours, minutes ago ( Gary Krockover 2004)
- Re: Calculating days, hours, minutes ago ( "Tom Duke" 2004)
- Re: Calculating days, hours, minutes ago ( Gary Krockover 2004)
- Re: Calculating days, hours, minutes ago ( "Sal" 2004)
- Calculating days, hours, minutes ago ( Gary Krockover 2004)
|
Maybe something here will help you.http://www.brainscansoftware.com/brainepoch.htmlHas anyone seen this before? It looks like there is some pretty usefulsnippets.Thank You Brian and if I use your stuff, I will donate!Sal D'Anna-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of GaryKrockoverSent: 2004-04-26 12:38 PMTo: WebDNA TalkSubject: Calculating days, hours, minutes agoWhat's the best way to calculate the time difference between 2 dates/times?I have stored in a db, pdate as mm/dd/yyyy and ptime as hh:mm:ss. I'd like to calculate and display the time lapse between the current system date/time and the pdate/ptime as in "posted # days, # hours # minutes ago".I've got some convoluted code where I change the date to days since and subtract those and then subtract the times. The days is no problem, however the hours is a problem if the ptime is a time ahead of the current time.I know this has come up before but the archives are crawling at themoment....Thanks,GJK -------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"Sal"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Emailer setup (1997)
WebCatalog 4.0 has been released! (2000)
Re:2nd WebCatalog2 Feature Request (1996)
Using WC for Bulk Emailings (1997)
ConvertChars (2000)
CVS Files for databases (2000)
Re:Emailer and encryption (1997)
Upgrade Pricing? (2003)
NT beta ReadMe missing (b12-b15) (1997)
upload to db (2007)
Strange Search Results (2004)
can WC render sites out? (1997)
Credit card arrangement (2005)
Payflow Pro help is here (2002)
Spaces causing netscape to act weird . . . (2002)
Bug or syntax error on my part? (1997)
Extended [ConvertChars] (1997)
[WebDNA] El Capitan (2017)
Cookie set browser session. (1998)
Change Subtotal (2000)