Re: Time comparison question

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17769
interpreted = N
texte = That was what I needed, Peter. Thank you very much.Peter Ostry wrote: > > Gil Poulsen changed the universe: > > > This one should be easy, but... > > > > I want to show something only if at least one hour has transpired since the > > last user access. This code works fine as long as I am not within an hour of > > midnight. In that case, it compares the post-midnight time to the current time > > and gives a false positive... > > You have to include the date, otherwise WebCat has no chance to know when a new day starts. > [math]{[date]}[/math]*100000+[math]{[time]}[/math] > That delivers a number like 72989316158. > > How it works: > It calculates the days since 0/0/00, multiplies by 100000 to make room for the time and adds the seconds since midnight. > > Peter > __________________________________________ > Peter Ostry - po@ostry.com - www.ostry.com > Ostry & Partner - Ostry Internet Solutions > Auhofstrasse 29 A-1130 Vienna Austria > fon ++43-1-8777454 fax ++43-1-8777454-21-- Gil Poulsen, Webmaster************************************************************** * AltiM@c * Phone: (732) 469-2567 * * 429 St. Giles Court * FAX: (732) 469-5823 * * Somerset, NJ * e-mail: help@altimac.com * * 08873 * WWW: http://www.altimac.com * ************************************************************** Associated Messages, from the most recent to the oldest:

    
  1. Re: Time comparison question (Gil Poulsen 1998)
  2. Re: Time comparison question (Peter Ostry 1998)
  3. Time comparison question (Gil Poulsen 1998)
That was what I needed, Peter. Thank you very much.Peter Ostry wrote: > > Gil Poulsen changed the universe: > > > This one should be easy, but... > > > > I want to show something only if at least one hour has transpired since the > > last user access. This code works fine as long as I am not within an hour of > > midnight. In that case, it compares the post-midnight time to the current time > > and gives a false positive... > > You have to include the date, otherwise WebCat has no chance to know when a new day starts. > [math]{[date]}[/math]*100000+[math]{[time]}[/math] > That delivers a number like 72989316158. > > How it works: > It calculates the days since 0/0/00, multiplies by 100000 to make room for the time and adds the seconds since midnight. > > Peter > __________________________________________ > Peter Ostry - po@ostry.com - www.ostry.com > Ostry & Partner - Ostry Internet Solutions > Auhofstrasse 29 A-1130 Vienna Austria > fon ++43-1-8777454 fax ++43-1-8777454-21-- Gil Poulsen, Webmaster************************************************************** * AltiM@c * Phone: (732) 469-2567 * * 429 St. Giles Court * FAX: (732) 469-5823 * * Somerset, NJ * e-mail: help@altimac.com * * 08873 * WWW: http://www.altimac.com * ************************************************************** Gil Poulsen

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:

OFF TOPIC: help wanted (1997) Replacing the db file (2000) Polls (2003) Reversed words (1997) shipcost (1997) shownext (1997) Re:2nd WebCatalog2 Feature Request (1996) SetHeader not Working (2006) ShippingCosts (1998) emailer prob (1998) Questions To Answer (1997) Upgrade to wsV (2004) Reading Field (2003) WebCatalog can't find database (1997) Search Questions (2000) ExclusiveLock (2000) WebCat cannot handle compatible search parameters? (1997) Pay Flow Pro SDK test file (JAVA) (2002) Help name our technology! I found it (1997) can WC render sites out? (1997)