Re: Cart date/time

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66524
interpreted = N
texte = Try chopping off the last four digits, that should give you the number of seconds since 1/1/1900 00:00:00 The last four digits are always increasing until they roll over 9999. This is to guarantee that even if two people visit the site at exactly the same second, they won't get the same cart number. I'd write a little bit more, but I have an appraiser showing up soon. Matthew Bohne Mark Derrick wrote: > Several years ago, I vaguely remember someone posting a message with > a code sample showing how to pull the cart number apart, and produce > the date/time it was created - but I can't find the posting in the > archives - probably due to my poor searching abilities - or SM > removing it :-) > > I'm looking to analyze incoming cart refs, and check whether they're > more than 24 hours old, and this seems to be the only way to do this. > > Any pointers/tips appreciated. > > > Mark. > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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: Cart date/time ( John Peacock 2006)
  2. Re: Cart date/time ( "Palle B. Nielsen (PowerPalle)" 2006)
  3. Re: Cart date/time ( John Peacock 2006)
  4. Re: Cart date/time ( "Palle B. Nielsen (PowerPalle)" 2006)
  5. Re: Cart date/time ( Donovan Brooke 2006)
  6. Re: Cart date/time ( "David Bastedo" 2006)
  7. Re: Cart date/time ( Mark Derrick 2006)
  8. Re: Cart date/time ( Stuart Tremain 2006)
  9. Re: Cart date/time ( Marko Bernyk 2006)
  10. Re: Cart date/time ( Marko Bernyk 2006)
  11. Re: Cart date/time ( "Dan Strong" 2006)
  12. Re: Cart date/time ( Marko Bernyk 2006)
  13. Re: Cart date/time ( "Dan Strong" 2006)
  14. Re: Cart date/time ( "Dan Strong" 2006)
  15. Re: Cart date/time ( "Dan Strong" 2006)
  16. Re: Cart date/time ( Stuart Tremain 2006)
  17. Re: Cart date/time ( "Dan Strong" 2006)
  18. Re: Cart date/time ( Donovan Brooke 2006)
  19. Re: Cart date/time ( Stuart Tremain 2006)
  20. Re: Cart date/time ( Donovan Brooke 2006)
  21. Re: Cart date/time ( Stuart Tremain 2006)
  22. Re: Cart date/time ( Marko Bernyk 2006)
  23. Re: Cart date/time ( Stuart Tremain 2006)
  24. Re: Cart date/time ( Mark Derrick 2006)
  25. Re: Cart date/time ( "Dan Strong" 2006)
  26. Re: Cart date/time ( "Dan Strong" 2006)
  27. Re: Cart date/time ( Donovan Brooke 2006)
  28. Re: Cart date/time ( John Peacock 2006)
  29. Re: Cart date/time ( Donovan Brooke 2006)
  30. Re: Cart date/time ( John Peacock 2006)
  31. Re: Cart date/time ( Matthew Bohne 2006)
  32. Re: Cart date/time ( Pat Holliday 2006)
  33. Cart date/time ( Mark Derrick 2006)
Try chopping off the last four digits, that should give you the number of seconds since 1/1/1900 00:00:00 The last four digits are always increasing until they roll over 9999. This is to guarantee that even if two people visit the site at exactly the same second, they won't get the same cart number. I'd write a little bit more, but I have an appraiser showing up soon. Matthew Bohne Mark Derrick wrote: > Several years ago, I vaguely remember someone posting a message with > a code sample showing how to pull the cart number apart, and produce > the date/time it was created - but I can't find the posting in the > archives - probably due to my poor searching abilities - or SM > removing it :-) > > I'm looking to analyze incoming cart refs, and check whether they're > more than 24 hours old, and this seems to be the only way to do this. > > Any pointers/tips appreciated. > > > Mark. > > > ------------------------------------------------------------- > 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/ > ------------------------------------------------------------- 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/ Matthew Bohne

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:

Applescript error (1998) payflowpro problem (2003) Web Catalog and Net Cloak (1998) Sorting by date (1997) OT: javascript help (2003) Sizes/Colors Options (2006) RE: textarea question (1998) prefs file not being written to (2000) Serving images from databases (1998) problems with 2 tags (1997) problems with webdna (2004) [WebDNA] Unofficial WebDna 6.2 and 7 - Mac Mavericks Installer (2014) [SHOWIF] (1997) Part Html part WebDNA (1997) Expiration of Carts (1997) Search for dates greater than [date] (1997) Same DB Same Time (2004) WebCatalog 2.0 b 15 mac (1997) [WebDNA] Talklist Archive & Twitter (2009) Quickie question on the email templates (1997)