Re: Calculating days, hours, minutes ago

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57539
interpreted = N
texte = The brainepoch library is not quite available yet, but you can look forward to the official release of this and a couple other nifty function libraries shortly. I'll have an official announcement to the list as soon as I finish up a little testing and documentation. - brian On Apr 26, 2004, at 12:47 PM, Sal 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 > > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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:

    
  1. Re: Calculating days, hours, minutes ago ( Brian Fries 2004)
  2. Re: Calculating days, hours, minutes ago - SOLUTION ( Gary Krockover 2004)
  3. Re: Calculating days, hours, minutes ago ( Gary Krockover 2004)
  4. Re: Calculating days, hours, minutes ago ( "Tom Duke" 2004)
  5. Re: Calculating days, hours, minutes ago ( Donovan Brooke 2004)
  6. Re: Calculating days, hours, minutes ago ( Donovan Brooke 2004)
  7. Re: Calculating days, hours, minutes ago ( Gary Krockover 2004)
  8. Re: Calculating days, hours, minutes ago ( "Tom Duke" 2004)
  9. Re: Calculating days, hours, minutes ago ( Gary Krockover 2004)
  10. Re: Calculating days, hours, minutes ago ( "Sal" 2004)
  11. Calculating days, hours, minutes ago ( Gary Krockover 2004)
The brainepoch library is not quite available yet, but you can look forward to the official release of this and a couple other nifty function libraries shortly. I'll have an official announcement to the list as soon as I finish up a little testing and documentation. - brian On Apr 26, 2004, at 12:47 PM, Sal 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 > > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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/ Brian Fries

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:

UPDATEDONE question ... (1998) SQL db type (2006) Database Helper Update (1998) Store Example to Use (1998) Multiple database search (2000) Draft Manual, Tutorial, and more (1997) TaxTotal Problem (1997) SSL and reg web* (1997) Data Type Search Problem (2004) Webmerchant confirmation hooks? (1997) Question about replacing words (1998) Or Operator (2005) OT: Limit on # of Pulldown entries (1997) [WebDNA] WebDNA vs. php war ;-) (2010) WebCatalog can't find database (1997) [OT] Unix question (2002) Email notification to one of multiple vendors ? (1997) Context and commands (1998) Possible Bug in 2.0b15.acgi (1997) filemaker - orderfile (1997)