Time Remaining?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17452
interpreted = N
texte = Is it possible using a math context to calculate Days:hours:minutes:seconds remaining until some deadline? For example, lets say the deadline is June 28, 1998 at 9:00AM I've got the following code for just calculating Days:[showif [date]<6/28/1998] Days left until sale starts: [math]{6/28/1998}-{[date]}[/math] [/showif]I figure I'd somehow have to convert the two dates to seconds (since 1904?) then subtract and divide to find D:H:M:S but I'm not sure how to get the exact time in seconds.Thank You. Brian B. Burton BOFH - Department of Redundancy Department --------------------------------------------------------------- MMT Solutions - Specializing in Online Shopping Solutions 973-808-8644 http://www.safecommerce.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Time Remaining? (Peter Ostry 1998)
  2. Time Remaining? (Brian B. Burton 1998)
Is it possible using a math context to calculate Days:hours:minutes:seconds remaining until some deadline? For example, lets say the deadline is June 28, 1998 at 9:00AM I've got the following code for just calculating Days:[showif [date]<6/28/1998] Days left until sale starts: [math]{6/28/1998}-{[date]}[/math] [/showif]I figure I'd somehow have to convert the two dates to seconds (since 1904?) then subtract and divide to find D:H:M:S but I'm not sure how to get the exact time in seconds.Thank You. Brian B. Burton BOFH - Department of Redundancy Department --------------------------------------------------------------- MMT Solutions - Specializing in Online Shopping Solutions 973-808-8644 http://www.safecommerce.com Brian B. Burton

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:

for those in need of inspiration [OT] (2003) Dummy Credit Card Number for debug? (1997) wo search help (1999) Rendering out a page (1997) [TaxableTotal] - not working with AOL and IE (1997) WebCatalog for Postcards ? (1997) [format] problem (2001) Up and running ... at last !! (1997) [Fwd: Rotating Banners ... (was LinkExchange)] (1997) Help! WebCat2 bug (1997) Navigator Parsing (1997) ' add to cart ' or ' sku ' problem (1998) Search repost: (2000) WebCat.acgi from /cgi-bin/? (1997) Bug Report, maybe (1997) all records returned. (1997) formatting a number (1999) WebDelivery downloads alias, not original ? (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) WebCat2b15MacPlugin - [protect] (1997)