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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

    
  1. ExclusiveLock (was: Re: unique ascending numbers) (Nitai @ ComputerOil 2003)
  2. Re: unique ascending numbers (Gary Krockover 2003)
  3. Re: unique ascending numbers (Nitai @ ComputerOil 2003)
  4. Re: unique ascending numbers (Scott Anderson 2003)
  5. Re: unique ascending numbers (Kenneth Grome 2003)
  6. Re: unique ascending numbers (Scott Anderson 2003)
  7. Re: unique ascending numbers (Kenneth Grome 2003)
  8. Re: unique ascending numbers (Kenneth Grome 2003)
  9. Re: unique ascending numbers (Kenneth Grome 2003)
  10. Re: unique ascending numbers (Laurent Bache 2003)
  11. Re: unique ascending numbers (John Peacock 2003)
  12. Re: unique ascending numbers (Laurent Bache 2003)
  13. Re: unique ascending numbers (John Peacock 2003)
  14. Re: unique ascending numbers (Chris List Recipient 2003)
  15. Re: unique ascending numbers (Joe D'Andrea 2003)
  16. Re: unique ascending numbers (Joe D'Andrea 2003)
  17. Re: unique ascending numbers (John Peacock 2003)
  18. Re: unique ascending numbers (Christer Olsson 2003)
  19. Re: unique ascending numbers (marc@kaiwi.com (Marc Kaiwi) 2003)
  20. Re: unique ascending numbers (Christer Olsson 2003)
  21. Re: unique ascending numbers (marc@kaiwi.com (Marc Kaiwi) 2003)
  22. Re: unique ascending numbers (marc@kaiwi.com (Marc Kaiwi) 2003)
  23. Re: unique ascending numbers (John Peacock 2003)
  24. Re: unique ascending numbers (Nitai @ ComputerOil 2003)
  25. Re: unique ascending numbers (marc@kaiwi.com (Marc Kaiwi) 2003)
  26. Re: unique ascending numbers (marc@kaiwi.com (Marc Kaiwi) 2003)
  27. Re: unique ascending numbers (Kenneth Grome 2003)
  28. Re: unique ascending numbers (Nitai @ ComputerOil 2003)
  29. Re: unique ascending numbers (marc@kaiwi.com (Marc Kaiwi) 2003)
  30. Re: unique ascending numbers (Nitai @ ComputerOil 2003)
  31. unique ascending numbers (marc@kaiwi.com (Marc Kaiwi) 2003)
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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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)