Re: Calculating days, hours, minutes ago

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57522
interpreted = N
texte = I can attest to Tom's code.. I haved used it/tested it quite a lot. Here is a link to where I did some tests with it and another method: http://www.euca.us/admin/tests/index.html?ra=89979 If you can wade through my cryptic code you'll find that I accounted for leap year as well. However, Brian might already have this wrapped up in a function.. I didn't look all that closely. That is the only downside, SMSI doesn't have a "[date seconds_since_epoch]" so you either have to write out all the parsing code if you're using a pre 5 engine, or you can create a function to shorten it up. Donovan Gary Krockover wrote: > That would be great Tom, thanks! I've got it to work (pretty much) but > am having to jump through a bunch of hoops to do so. I'm thinking it > was my visit to the dentist this morning that is playing with my mind. > :-) I'd love to see your code. > > Thanks! > Gary > > At 03:45 PM 4/26/2004, you wrote: > >> Gary, >> >> I convert everything to seconds since (using a calculation) and then >> subtract the two times and work backwards to get the elapsed time. >> >> I can send you on code if you need it. >> >> - Tom -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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)
I can attest to Tom's code.. I haved used it/tested it quite a lot. Here is a link to where I did some tests with it and another method: http://www.euca.us/admin/tests/index.html?ra=89979 If you can wade through my cryptic code you'll find that I accounted for leap year as well. However, Brian might already have this wrapped up in a function.. I didn't look all that closely. That is the only downside, SMSI doesn't have a "[date seconds_since_epoch]" so you either have to write out all the parsing code if you're using a pre 5 engine, or you can create a function to shorten it up. Donovan Gary Krockover wrote: > That would be great Tom, thanks! I've got it to work (pretty much) but > am having to jump through a bunch of hoops to do so. I'm thinking it > was my visit to the dentist this morning that is playing with my mind. > :-) I'd love to see your code. > > Thanks! > Gary > > At 03:45 PM 4/26/2004, you wrote: > >> Gary, >> >> I convert everything to seconds since (using a calculation) and then >> subtract the two times and work backwards to get the elapsed time. >> >> I can send you on code if you need it. >> >> - Tom -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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/ Donovan Brooke

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:

Introduction/Tutorial/QuickStart (1997) matching shipto and others (1998) Email...Thanks (1997) What about this [delete] situation? (1998) Quickie question on the email templates (1997) Bug? (1997) Text Variabels Not Passed To Include (2002) WebCatalog Q & A pages (1997) [group] ? (1997) Triggers & New Version? (1999) WebDNA tags in WebMerchant email templates ... (1997) Dynamic Pop up menu? (1997) Download URL & access on the fly ? (1997) Renumbering Database Records (1999) ColdFusion v. WebDNA (2004) European Convention (2004) Languages (1997) shipcost (1997) Where is eudora plugin? (1998) [WebDNA] WebDNA and Google Geo Tagging (2012)