Re: Calculating days, hours, minutes ago

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57530
interpreted = N
texte = Gary, The calc I use to determine 'seconds since' is:- = seconds_since=3D[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)
Gary, The calc I use to determine 'seconds since' is:- = seconds_since=3D[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/ "Tom Duke"

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:

# fields limited? (1997) Replace context problem ... and answers (1997) [taxrate] question (1997) My server admin needs help ... (2004) Help formatting search results w/ table (1997) Configuring E-mail (1997) Date to days (2002) all records returned. (1997) Re:2nd WebCatalog2 Feature Request (1996) HomePage Caution (1997) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) [WebDNA] how to purge webdna cache of templates? (2009) carriage returns in data (1997) Associative lookup style? + bit more (1997) ups quickcost [repost] (1999) 4.0 Plugin under Webten (2000) Grep and removing text (2002) WebCat-Typhoon-WebTen (1998) Re:Copyright ? (1997)