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: IIS 4 (1998)
Searching for all records (1998)
Firesite and [referrer] atg broke (1997)
Generating Report Totals (1997)
Sendmail Excel attachment (2003)
2.1 bugs left over from beta cycle (1998)
Hosting Service (1998)
[WebDNA] API Integration (2010)
WebCatalog 402rc2 is now available (2001)
Dynamic Pop up menu? (1997)
Emailer help....! (1997)
switching users (1998)
[BULK] Fwd: [WebDNA] [BULK] WebDNA discovery in the Console - [having many crashes] (2011)
WebCatalog Plug-in for Webstar. (1997)
BBEdit and WebCatalog 2.0? (1997)
How reliable is WebDNA? (2004)
name of file (2002)
SiteGuard Admin Feature ? (1997)
Sku numbers (1997)
searching results (1999)