Re: Date and Time
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62653
interpreted = N
texte = Sure, pretty simple.In your db, you have your login timestamp. When that is appended to the db, also append a logout timestamp (do a math date +1 day, keep the same time). At each log in attempt, allow them to enter if the current system date/time isn't greater than the logout timestamp that your recorded when you added the record.I believe that's what you're looking for - one way to do it.GJKAt 04:50 AM 7/25/2005, you wrote:>Hi,>>Is there anyway to make a temporary login last for exactly 24hrs?>>I store the date and time in a database using:>>[DATE format=%d/%m/%Y %H:%M:%S]>>How can I then check if 24hrs have passed.>>TIA>>Erol-------------------------------------------------------------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:
Sure, pretty simple.In your db, you have your login timestamp. When that is appended to the db, also append a logout timestamp (do a math date +1 day, keep the same time). At each log in attempt, allow them to enter if the current system date/time isn't greater than the logout timestamp that your recorded when you added the record.I believe that's what you're looking for - one way to do it.GJKAt 04:50 AM 7/25/2005, you wrote:>Hi,>>Is there anyway to make a temporary login last for exactly 24hrs?>>I store the date and time in a database using:>>[DATE format=%d/%m/%Y %H:%M:%S]>>How can I then check if 24hrs have passed.>>TIA>>Erol-------------------------------------------------------------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/
Gary Krockover
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:
nested showif? (1998)
Help! WebCat2 bug (Ben's input) (1997)
shownext example (2001)
[WebDNA] ReturnRaw and binarybody (2013)
Error: Too many nested [xxx] contexts (1997)
Problems appending to database (1997)
User/pass with tcpconnect (2000)
[WebDNA] WebDNA code displaying on page (2012)
xml - amazon bug and sed q: (2004)
URL too Long? (1997)
ListCookies command? (2007)
PCS Frames (1997)
Template Not Found (1998)
[WebDNA] Some WebDNA news (2014)
[WebDNA] WebDNA is not parsing CSS file (2010)
Can I invoke an ssi plugin from within a webcat page (1997)
New Web Site Developers Database (1996)
[WebDNA] encrypting more than just a credit card number.... (2014)
Emailer choke (1997)
Re:no [search] with NT (1997)