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:00The 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 BohneMark 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:
Try chopping off the last four digits, that should give you the number of seconds since 1/1/1900 00:00:00The 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 BohneMark 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)