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. GJK At 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:

    
  1. Re: [WebDNA] Date and Time as numbers (Marc Thompson 2009)
  2. Re: [WebDNA] Date and Time as numbers (Donovan Brooke 2009)
  3. Re: [WebDNA] Date and Time as numbers ("Tom Duke" 2009)
  4. Re: [WebDNA] Date and Time as numbers (Donovan Brooke 2009)
  5. Re: [WebDNA] Date and Time as numbers (Steve Craig 2009)
  6. Re: [WebDNA] Date and Time as numbers (christophe.billiottet@webdna.us 2009)
  7. [WebDNA] Date and Time as numbers (Steve Craig 2009)
  8. Re: Date and Time ( Gary Krockover 2005)
  9. Date and Time ( "Erol Guneri" 2005)
  10. Re: convert date and time ( "Dan Strong" 2005)
  11. Re: convert date and time ( Donovan Brooke 2005)
  12. Re: convert date and time ( "Dan Strong" 2005)
  13. Re: convert date and time ( Lester 2005)
  14. Re: convert date and time ( "Dan Strong" 2005)
  15. Re: convert date and time ( Lester 2005)
  16. convert date and time ( Lester 2005)
  17. Re: Cart -> Date and Time ( "Dan Strong" 2004)
  18. Re: Cart -> Date and Time ( Palle Bo Nielsen 2004)
  19. Re: Cart -> Date and Time ( Palle Bo Nielsen 2004)
  20. Re: Cart -> Date and Time ( "Dan Strong" 2004)
  21. Re: Cart -> Date and Time ( "Dan Strong" 2004)
  22. Re: Cart -> Date and Time ( Alain Russell 2004)
  23. Re: Cart -> Date and Time ( Donovan Brooke 2004)
  24. Re: Cart -> Date and Time ( "Dan Strong" 2004)
  25. Re: Cart -> Date and Time ( Palle Bo Nielsen 2004)
  26. Re: Cart -> Date and Time ( Donovan Brooke 2004)
  27. Re: Cart -> Date and Time ( "WebDna @ Inkblot Media" 2004)
  28. Re: Cart -> Date and Time ( "WebDna @ Inkblot Media" 2004)
  29. Re: Cart -> Date and Time ( Palle Bo Nielsen 2004)
  30. Re: Cart -> Date and Time ( "Dan Strong" 2004)
  31. Re: Cart -> Date and Time ( "WebDna @ Inkblot Media" 2004)
  32. Re: Cart -> Date and Time ( "Dan Strong" 2004)
  33. Re: Cart -> Date and Time ( "Dan Strong" 2004)
  34. Cart -> Date and Time ( Palle Bo Nielsen 2004)
  35. Re: date and time stamp (Donovan 2003)
  36. Re: date and time stamp (Alain Russell 2003)
  37. Re: date and time stamp (Donovan 2003)
  38. Re: date and time stamp (Alain Russell 2003)
  39. Re: date and time stamp (Donovan 2003)
  40. Re: date and time stamp (Aaron Lynch 2003)
  41. Re: date and time stamp (Donovan 2003)
  42. Re: date and time stamp (Aaron Lynch 2003)
  43. date and time stamp (Donovan 2003)
  44. Re: Converting SQL Microtime to Date and Time (Dan Strong 2003)
  45. Re: Converting SQL Microtime to Date and Time (Jesse Williams-Proudman 2003)
  46. Re: Converting SQL Microtime to Date and Time (Jesse Williams-Proudman 2003)
  47. Re: Converting SQL Microtime to Date and Time (Dan Strong 2003)
  48. Re: Converting SQL Microtime to Date and Time (sally 2003)
  49. Re: Converting SQL Microtime to Date and Time (John Peacock 2003)
  50. Re: Converting SQL Microtime to Date and Time (Jesse Williams-Proudman 2003)
  51. Re: Converting SQL Microtime to Date and Time (Frank Nordberg 2003)
  52. Re: Converting SQL Microtime to Date and Time (Glenn Busbin 2003)
  53. Re: Converting SQL Microtime to Date and Time (Jesse Williams-Proudman 2003)
  54. Re: Converting SQL Microtime to Date and Time (Glenn Busbin 2003)
  55. Converting SQL Microtime to Date and Time (Jesse Williams-Proudman 2003)
  56. Re: Date AND time (Aaron Lynch 2001)
  57. Re: Date AND time (Bob Minor 2001)
  58. Re: Date AND time (Aaron Lynch 2001)
  59. Re: Date AND time (Bob Minor 2001)
  60. Re: Date and Time Analyzer (Nicolas Verhaeghe 2000)
  61. Launch date and time? (Kenneth Grome 1999)
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. GJK At 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)