Re: Calculating days, hours, minutes ago

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57531
interpreted = N
texte = Tom, you read my mind! I've written the code to convert back and I was just about to go search the archives for a seconds since...amazing. Thanks! GJK At 04:07 AM 4/27/2004, you wrote: > Gary, > > The calc I use to determine 'seconds since' is:- > > >seconds_since=[math]((([math]{[date]}[/math])-1)*86400)+([math]{[time])[/math])[/math] > > I then store this value and subtract one from the other to > determine the time elapsed in seconds. I can't find the code to convert > the value back to days and time but it should be easy enough to reverse > the above code. > > - Tom ------------------------------------------------------------- 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)
Tom, you read my mind! I've written the code to convert back and I was just about to go search the archives for a seconds since...amazing. Thanks! GJK At 04:07 AM 4/27/2004, you wrote: > Gary, > > The calc I use to determine 'seconds since' is:- > > >seconds_since=[math]((([math]{[date]}[/math])-1)*86400)+([math]{[time])[/math])[/math] > > I then store this value and subtract one from the other to > determine the time elapsed in seconds. I can't find the code to convert > the value back to days and time but it should be easy enough to reverse > the above code. > > - Tom ------------------------------------------------------------- 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:

GuestBook example (1997) Search design (1997) $append (1998) Multiple Newcarts (1996) WebCatalog for Mac 2.0.1 Released (1997) Plugin or CGI or both (1997) WebCatalog2 Feature Feedback (1996) OFF-TOPIC: Check www.godaddy.com for me ... (2003) remotely add + sign (1997) WebCatalog 4.0 Users that want to talk to the Media.... (2000) Runtime (1998) 2nd try:Webcat interfering with Webstar? (1998) convert characters (2003) WebCatalog Prefs.ref file ? (1998) Only charge card when product shipped ? (1997) SERIOUS Problem (1998) Re:Item options w/ price adjustment (1997) [LOOKUP] (1997) temporary database? an aside (2000) WebCat2b12 - New features for 1.6 users ... (1997)