Re: unique ascending numbers
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50181
interpreted = N
texte = Marc Kaiwi wrote:> Humm, I was hoping to avoid throwing in an extra search just to retrieve > the last SKU number in the db. (I have a thing about extra processing > simply because it's easy)There is no reason you cannot use the [cart] even if it is of varying length. The [cart] is guaranteed to be unique, no matter how many people are hitting the site at the exact same instant. I wouldn't get too wrapped up in recreating that particular wheel.> > Can't I get something like the number of seconds since 1904 or something > like that? Wouldn't that work for me? Or not?Mac epoch, huh? Apart from the fact that the Mac epoch is truly evil[1], I believe the cart code uses the Unix epoch as it's base number.John[1] the Mac epoch is defined as the number of seconds since 1904-01-01 00:00:00 _local time_. The problem is that an epoch is supposed to be a fixed point in time that can be referred to uniquely all over the planet; the Mac epoch is floating so that it is impossible to use to reference events in time that occur in different timezones.-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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:
Marc Kaiwi wrote:> Humm, I was hoping to avoid throwing in an extra search just to retrieve > the last SKU number in the db. (I have a thing about extra processing > simply because it's easy)There is no reason you cannot use the [cart] even if it is of varying length. The [cart] is guaranteed to be unique, no matter how many people are hitting the site at the exact same instant. I wouldn't get too wrapped up in recreating that particular wheel.> > Can't I get something like the number of seconds since 1904 or something > like that? Wouldn't that work for me? Or not?Mac epoch, huh? Apart from the fact that the Mac epoch is truly evil[1], I believe the cart code uses the Unix epoch as it's base number.John[1] the Mac epoch is defined as the number of seconds since 1904-01-01 00:00:00 _local time_. The problem is that an epoch is supposed to be a fixed point in time that can be referred to uniquely all over the planet; the Mac epoch is floating so that it is impossible to use to reference events in time that occur in different timezones.-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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/
John Peacock
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:
RE: protect tag on NT (1997)
Emailer Timing out (1999)
syntax question, not in online refernce (1997)
Requiring that certain fields be completed (1997)
encrypt/decrypt - are docs correct?? (2002)
[WebDNA] Digest from talk@webdna.us (2013)
Package Prices (2000)
Emailer 550 (solved!) (2000)
[WebDNA] [redirect] include a value to pass along? (2010)
WebDNA Solutions ... sorry! (1997)
typo in docs (2000)
Running _every_ page through WebCat ? (1997)
sorting dates (1999)
Emailer setup (1997)
[SHOWNEXT] Examples (1997)
Searching multiple fields from one form field (1997)
X Server (1999)
WebCatalog f2 Installation (1997)
RE: Languages (1997)
Re:quit command on NT (1997)