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:

(1997) Multiple prices (1997) [body_include] (2001) Sendmail double space (2001) Trouble with Netscape (1998) not interpreting Q (2001) ODBC to WebCat (2000) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) minimalist shopping cart. (1997) Spawn doesn't work as advertised ... (2000) [CART] (1997) WebCat b13 CGI -shownext- (1997) If Else Statement... (2004) WebCat2b13MacPlugIn - More limits on [include] (1997) [ReturnRaw] and hiding FORM data (2003) [WebDNA] showif with empty variable (2015) Re2: AAgghh!! Help, please. SSL strikes again. (1997) Is there a way......... (2000) carriage returns in data (1997) Can't load tmpl files (1997)