Re: Calculating days, hours, minutes ago
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57519
interpreted = N
texte = Thanks Sal, Brian's Brainscan soft looks promising, however the link for his form to download isn't linked. Unless someone has a snippet already, I'll email Brian.GJKAt 02:47 PM 4/26/2004, you wrote:>Maybe something here will help you.>>http://www.brainscansoftware.com/brainepoch.html>>Has anyone seen this before? It looks like there is some pretty useful>snippets.>>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 Gary>Krockover>Sent: 2004-04-26 12:38 PM>To: WebDNA Talk>Subject: Calculating days, hours, minutes ago>>What'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 the>moment....>>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 to>>Web 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/-------------------------------------------------------------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)
|
Thanks Sal, Brian's Brainscan soft looks promising, however the link for his form to download isn't linked. Unless someone has a snippet already, I'll email Brian.GJKAt 02:47 PM 4/26/2004, you wrote:>Maybe something here will help you.>>http://www.brainscansoftware.com/brainepoch.html>>Has anyone seen this before? It looks like there is some pretty useful>snippets.>>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 Gary>Krockover>Sent: 2004-04-26 12:38 PM>To: WebDNA Talk>Subject: Calculating days, hours, minutes ago>>What'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 the>moment....>>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 to>>Web 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/-------------------------------------------------------------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/
Gary Krockover
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:
Remove a Field from a DB (2007)
[Webcat 2]Next (1997)
Cold Fusion Buster (1997)
filemaker - orderfile (1997)
2.0 Info (1997)
Two submit buttons ? (1997)
Not really WebCat- (1997)
emailer (1997)
Database formats (2003)
[WebDNA] TLS 1.2 and [tcpconnect] (2018)
Carts & Refering URLs (1997)
t or f (1997)
NTbeta18 corrupted? (1997)
FEA REQ: One .hdr, multiple .db's (2003)
Document Contains No Data! (1997)
Question About XML Style Syntax (2000)
A Global Variable (1997)
WebCatalog for guestbook ? (1997)
[shownext] (1998)
Resume Catalog ? (1997)