Slashdot Mirror


The Quickly Descending Unix Timestamp

Teach writes: "If my calculations are correct, on Thursday, April 19, 2001, at 04:25:21 UTC (00:25:21 EDT and late Wednesday at 21:25:21 PDT), the UNIX clock will read 987654321, which is pretty cool. This will be the first of two such "significant" events in 2001, the second being 01:46:39 UTC on 2001-09-09, when the clock will read 999999999 (and then of course "roll over" to 1000000000 one second later). Use the Time Zone Converter to help you figure out when this will occur in your area, or read up on other critical dates (such as when the 32-bit signed UNIX clock overflows in 2038)."

272 comments

  1. Are we coming up to an "S1B" bug? by Speare · · Score: 5

    Not many programs are gonna care how many digits are in a timestamp, but I bet some do try to format stuff assuming a less-than-one-billion-seconds-since-epoch time.

    Review your code?

    --
    [ .sig file not found ]
    1. Re:Are we coming up to an "S1B" bug? by ethereal · · Score: 1

      And this was flamebait how? Remember, moderators: it's not just clicking on the little buttons, it's also about reading the post.

      --

      Your right to not believe: Americans United for Separation of Church and

    2. Re:Are we coming up to an "S1B" bug? by silicon_synapse · · Score: 1

      flamebait!? Did I miss something? OK, who got into my weed again?


      --

    3. Re:Are we coming up to an "S1B" bug? by altair1 · · Score: 1


      What is there to format? The time is just an integer which is converted to readable formats by math operations. And nobody has to do that sort of thing by hand anyhow. Plenty of library routines exist for converting time to other formats.

    4. Re:Are we coming up to an "S1B" bug? by abelsson · · Score: 4
      What moron moderated this flamebait?

      In fact, the poster is absolutly correct- Kmail did have exactly the kind of bug he's talking about - a one billion second buffer overrun bug. They issued a patch a few weeks ago.

      read about it here

      -henrik

    5. Re:Are we coming up to an "S1B" bug? by edhall · · Score: 5

      There is another 999999999 rollover problem. Some admin scripts (in BASH, PERL, etc.) assume that the decimal timestamp can be compared as an ASCII string. Unfortunately, 999999999 > 1000000000 in this case, which can cause such scripts to break in subtle or overt ways. For example, if TS1=999999999 and TS2=1000000000, the BASH statement:

      if [ $TS1 ">" $TS2 ]; then

      will evaluate as true.

      -Ed
    6. Re:Are we coming up to an "S1B" bug? by rgmoore · · Score: 1

      You'd have to be smoking something interesting to have that problem in Perl. There's a distinction made between > and gt, so you'd need to make an explicit decision to use a string rather than numerical comparison. Use of illicit substances is about the only plausible explanation I can think of for somebody doing something that brain dead.

      --

      There's no point in questioning authority if you aren't going to listen to the answers.

    7. Re:Are we coming up to an "S1B" bug? by edhall · · Score: 2

      There is a difference between ">" and -gt in BASH as well. But that doesn't keep people from doing it wrong.

      -Ed
    8. Re:Are we coming up to an "S1B" bug? by MochaMan · · Score: 1

      They will care if they happen to have been silly enough to store the timestamp as 32 bits in a binary file and time_t changes to 64 bits.

      I wouldn't underestimate the number of people who did this considering the number of people who were storing years as two digits.

      On a more humorous note, it's amusing to see that a lot of mail list archives on the web display dates like this:

      April 5, 19100

    9. Re:Are we coming up to an "S1B" bug? by Speare · · Score: 1

      (Wow, it's a rollercoaster. Down to 1:Flamebait and up to 5:Insightful and down to 1:Overrated and up to 5 again. Moderation Totals:Insightful=2, Interesting=2, Informative=2, Overrated=3, Total=9. Interestingly, it stopped listing a Flamebait moderation after the first few hours. A couple others of mine were hit with Overrated, so maybe someone's got a beef with me. [shrug])

      --
      [ .sig file not found ]
  2. How are we going to discuss this?? by FortKnox · · Score: 2

    I hate to crapflood and troll, but this has to be the dumbest article on /.
    How are we supposed to discuss this?
    Its like when the "annoying" guy comes into your cube and says some dumb fact, like "hey, the timestamp will be 987654321 soon!", and you try to ignore him so he'll go away...

    --
    Good quote, too many chars. Seriously, the slashdot 120 char limit sucks!
    1. Re:How are we going to discuss this?? by silicon_synapse · · Score: 2

      Troll? How is this a troll? Someone has some serious issues today


      --

    2. Re:How are we going to discuss this?? by Steeltoe · · Score: 1

      Well... You ARE discussing it at this very moment, aren't you? So I guess we don't really need any great stories ;-)

      - Steeltoe

    3. Re:How are we going to discuss this?? by 3am · · Score: 1

      i agree totally, this didn't deserve to be a full fledged article. this is a interesting tidbit at best.

      --

      A: None. The Universe spins the bulb, and the Zen master merely stays out of the way.
    4. Re:How are we going to discuss this?? by arban · · Score: 1

      Gahhh, I remember one guy was going around to all the cubes reminding everyone that the day contained the leap second so that they could adjust their clocks.

      --

      "You like Chinese food." -Fortune Cookie
    5. Re:How are we going to discuss this?? by Anonymous Coward · · Score: 1
      Well... You ARE discussing it at this very moment, aren't you? So I guess we don't really need any great stories ;-)

      [nod] I think Slashdot provides a valuable service when they post submissions like this. I mean, there's such an incredible shortage of things to complain about! If it weren't for Slashdot, we'd all be reduced to complaining about silly insignificant things like ... like ... well, I dunno, like war, or injustice, or widespread environmental degradation, or dumb things like that.

      But thanks to Slashdot, we can complain about important things like lame submissions, and people abusing moderator priviledges, and Jon Katz, and so on.

      Thanks, Slashdot!

    6. Re:How are we going to discuss this?? by SquadBoy · · Score: 1

      I don't have to worry about that I have a cron job that runs rdate every night. Oh gawd I have become that which I hate. :)

      --

      Cypherpunks: Civil Liberty Through Complex Mathematics. Those who live by the sword die by the arrow.
  3. 2038? by thrillbert · · Score: 2

    I thought the Mayans predicted the world would end in 2021.. But if I'm still alive in 2038, I think I'll be more concerned about my next change of Depend Undergarments than what my Unix clock is doing...

    1. Re:2038? by sacherjj · · Score: 2

      I thought the world ended for the Mayans LONG ago...

    2. Re:2038? by silicon_synapse · · Score: 1

      Flamebait? Did the moderators eat paint chips this morning or something!? Oh to metamod...


      --

    3. Re:2038? by dj_flux · · Score: 1

      The Mayan calendar ends on December 21 2012. *shrug*

    4. Re:2038? by thrillbert · · Score: 2

      Flamebait? Did the moderators eat paint chips this morning or something!?

      Either that or they're upset at the Depend Undergarment remark because it reminded them to change their own.

    5. Re:2038? by falzer · · Score: 1

      There's nothing to stop time_t from being longer than 32 bits, especially not IA-32.

  4. This is truly stuff that matters by jawad · · Score: 1

    If this doesn't matter, I don't know what does! I wish I was old enough to have experienced 12:34 on 6th May 1978 (5/6/78) (or 5th June 1978, for those who do it DD/MM/YY).
    Pointlessly,
    ~jawad

    1. Re:This is truly stuff that matters by ivan256 · · Score: 1

      Why 6/7/89 wasn't good enough for you?

    2. Re:This is truly stuff that matters by Ironix · · Score: 1

      Damn!

      I was born on June 4th, 1978 @ 12:35

      --
      Still #1 -- Lonely Gay Geek
    3. Re:This is truly stuff that matters by Tech187 · · Score: 1

      Back in the year 89 it was probably good enough.

      That was a long time ago, though, so I might be wrong.

  5. It's like an odometer by Slashdot+Cruiser · · Score: 5

    Fortunately, the Unix internal clock works in a manner very similar to the odometer on the Slashdot Cruiser. When you go to trade in your Unix system and step up to Windows, all you have to do is crack open the little block box inside your machine and roll it back several hundred thousand milliseconds.

    Nobody will know the difference save the occasional hidden-camera "consumer protection" reporterette. These people seem to have nothing better to do than spy on semi-honest computer salesman and publicly humiliate them for the crime of trying to feed their families. We could talk about the silliness of having to disclose whether or not your computer had its case straightened after a minor plastic-bender, but that would be a whole nother post....

    --

    Got a full tank of hot grits and a penis bird in the glove box.
  6. Palindrome's though common should qualify by Microsift · · Score: 1

    987656789 would be equally interesting to me

    --
    My other sig is extremely clever...
    1. Re:Palindrome's though common should qualify by travisd · · Score: 1

      That's tomorrow actually.

      bash-2.03$ perl -MPOSIX -le 'print ctime(987656789)'
      Thu Apr 19 01:06:29 2001

  7. NEWS FLASH: This is old news. Truely, it is. by AnonymousCowheard · · Score: 1



    I have some REAL news I must share with ya'll...


    NEWS BULLETIN: Poland's worst air disaster occurred today when a small two-seater Cessna 152 plane crash landed into a cemetery early this afternoon in central Poland. Polish search and rescue workers have recovered 826 bodies so far and expect that number to climb as digging continues into the evening.

    Please remove BOOGERS when sending me eMail. Thankyou...

    Sincerely,

    --

    But I'm sure you already Gnu that.
  8. Re:This is truly (NOT) stuff that matters by sacherjj · · Score: 1

    If you must have the counting dates, you can always look forward to 8/9/01. Frankly, I'm looking forward to the weekend.

  9. If calling 1/1/01 the Millenium wasn't geeky enuf by Cy+Guy · · Score: 1

    Then trying to invite people to a Unix rollover party will surely get me put in the geek hall of fame by my non-geek friends. It does coincidentally fall just before my SO's birthday though, so maybe I can get a away with it if I don't tell the the real reason for the party until just before the roll over occurs.

  10. Something to Celebrate by hardcorejon · · Score: 1

    If there was ever a reason for geeks to have a picnic, barbecue, and put back some beers...
    a "Billion Seconds of Unix" party sounds like a great idea to me....

    ....ok, actually many other people thought of it first, I've actually heard of a couple of such parties planned in the SF bay area -- you should plan one in your neighborhood!

    - jonathan.


    The Moral Majority was disbanded in 1989

  11. timestamp -- divine intent! by religion+major · · Score: 2

    I've been having some free time lately, so I've gotten to pondering some questions like these. One of my questions was about why a rational and benevolent deity would allow Survivor II to air on primetime television. The other has to do with the timestamp and a theory of mine.

    You see, neither would a rational and benevolent deity allow the unix timestamp to lap like that. The commotion involved would be significantly worse than the Y2K bug was, because at least with the millennium, people knew to be on the lookout for all sorts of strange behavior (not just computer bugs). But 2038? What kind of date is that? Where's your catchy three-syllable mnemonic for that one?

    So clearly, there has to be another explanation. Mine is that Armegeddon will intercede and prevent this disaster from occurring. A rational and benevolent deity would realize that it would be far better for the universe to be destroyed than for time to cease.

    This poses all sorts of interesting moral, legal, and ethical questions. What should we do about debts that are set to expire after 2038? Should mandatory euthenasia be implemented on all infants born after 2036 so as to avert their agony when the heavens open up and the clarion trumpets of Judgment call forth the arrival of hellfire and brimstone? Will we be able to sublet our cottages in Boca as we've grown accustomed to doing?

    This calls for immediate discussion. A committee of learned professors in each of the relavent disciplines (religion, philosophy, sociology, art history) must convene and solve this problem before it becomes the death of us. We have only thirty seven more years left, so let's make the best of it.

    1. Re:timestamp -- divine intent! by SamBeckett · · Score: 1

      My catch 3-syllable acronym for the 2038 bug is....

      Y38

    2. Re:timestamp -- divine intent! by Anonymous Coward · · Score: 1

      One should really question the sanity in modding this post to "Informative"...

    3. Re:timestamp -- divine intent! by Anonymous Coward · · Score: 1

      *snicker* Or, rather "Interesting"... and if either of these posts gets modded up to "Informative" OR "Interesting", I'll be convinced the world is going to end... ;)

    4. Re:timestamp -- divine intent! by jayhawk88 · · Score: 1

      Or better yet, Y2-Adams!

      Oh wait, that's 42. Never mind.

    5. Re:timestamp -- divine intent! by RinkRat · · Score: 1
      I'm patenting/trademarking/copyrighting/whatever that right now! You lose, sucka!

      8^) Ahh, US businesses... What evil *won't* they do?

      --
      RinkRat
    6. Re:timestamp -- divine intent! by Black+Parrot · · Score: 1

      > Y38

      Not to be confused with 38@Y, which is the title of a p()rn() flick.

      Erm... no pun intended with the "flick" part.

      --

      --
      Sheesh, evil *and* a jerk. -- Jade
    7. Re:timestamp -- divine intent! by kennylives · · Score: 1
      You see, neither would a rational and benevolent deity allow the unix timestamp to lap like that.

      I think it's probably time for you to stop playing Black & White for a little while...

      --

      Where the value of X-Mailer: is the true measure of a man...

    8. Re:timestamp -- divine intent! by fatphil · · Score: 1

      U2G (Unix 2 Gig?)


      --

      --
      Also FatPhil on SoylentNews, id 863
    9. Re:timestamp -- divine intent! by haruharaharu · · Score: 1

      One of my questions was about why a rational and benevolent deity would allow Survivor II to air on primetime television

      This, more than anything, has eroded my faith in God

      --
      Reboot macht Frei.
    10. Re:timestamp -- divine intent! by Mr.+Slippery · · Score: 2

      Final and decisive proof of my suspicion that some dark cabal - or group of people in desparate need of a life - has been screwing with the moderation system of late.

      I suspect that this will either be modded down to -1 to bury all evidence, or modded up so that they may gloat in their accomplishment.

      Tom Swiss | the infamous tms | http://www.infamous.net/

      --
      Tom Swiss | the infamous tms | my blog
      You cannot wash away blood with blood
    11. Re:timestamp -- divine intent! by ConceptJunkie · · Score: 2

      It seems obvious to me that the catchy name for the time_t rollover should be s2G!

      --
      You are in a maze of twisty little passages, all alike.
    12. Re:timestamp -- divine intent! by WyldOne · · Score: 1

      This must be the date that Windows is recalled due to a copyright violation of Hell's EULA.

      --

      make Linux, not Microsoft. sin(beast) = -0.809016994374947424102293417182819
    13. Re:timestamp -- divine intent! by That+Fat+Guy · · Score: 1
      "Could you possibly be a history, sociology, religion, biology and ethics major at the same time?"

      Hey stop picking on my buddy. You're just jealous that you didn't work hard enough in college to do a quintiple-major.

      ----

      --

      ------
      My karma's at -6!

    14. Re:timestamp -- divine intent! by MrBogus · · Score: 1

      The nice thing about that link is that it shows that 2/3s of new slashdot users are actually troll accounts. But then again, "MrBogus" used to be a troll account too...

      --

      When I hear the word 'innovation', I reach for my pistol.
    15. Re:timestamp -- divine intent! by Zocalo · · Score: 1
      But 2038? What kind of date is that? Where's your catchy three-syllable mnemonic for that one?

      What about "EUE", or "End of Unix Era"?

      Or maybe not...

      Of course, by 2038 we'll probably be moaning about how limiting our 128 bit computers are and wishing the Chipzilla's would make the move to sensible 256 bit words. 1970 + 2^256 seconds would be... somebody else's problem! ;-)

      --
      UNIX? They're not even circumcised! Savages!
  12. Using Perl.... by ajs · · Score: 5

    So, you have a UNIX timestamp you want to check out? Try Perl on the command-line:

    perl -MPOSIX -le 'print ctime(999999999)'
    perl -MPOSIX -le 'print ctime(987654321)'

    For another timezone, you can just set the TZ environment variable. On the command-line, or in the code:

    perl -MPOSIX -le '$ENV{TZ}="CST";print ctime(200)'

    Actually, because there are historical reasons for ctime supplying a newline, you can drop the "l" from "-le".

    1. Re:Using Perl.... by gupta · · Score: 1

      thanks for these commands. there is always a thing to learn everyday.

    2. Re:Using Perl.... by atcurtis · · Score: 1


      Cool - so 1234567890 is Friday 13 Feb 2009, just before midnight in the UK.

      --
      -- The universe began. Life started on a billion worlds...
      -- Except on one where stupidity was there first.
  13. Ascending... by Smirks · · Score: 2

    Shouldn't that be ascending since the numbers are going up? Descending implies the numbers are going down, which they surely are not.

    1. Re:Ascending... by andyh1978 · · Score: 2
      Shouldn't that be ascending since the numbers are going up? Descending implies the numbers are going down, which they surely are not.
      And from the article...
      the UNIX clock will read 987654321
      Now can we see the descending numbers? Aren't they pretty?
    2. Re:Ascending... by Smirks · · Score: 1

      Yes, however, on the grand scale they are going up. ;)

  14. Ha! by webcrafter · · Score: 2

    That should teach to overclockers!!

    Victor

    1. Re:Ha! by That+Fat+Guy · · Score: 1
      My slashdot ID is higher than yours! In fact, it's the highest! And yet you are 174 spaces from the other extreme. So there!

      ----

      --

      ------
      My karma's at -6!

    2. Re:Ha! by DeadBeef · · Score: 1

      You are going to have to underclock your slashdot id some more dude.

      --
      I am a lawyer and this constitutes legal advice and I shall indemnify you against any losses arising from taking it.
    3. Re:Ha! by webcrafter · · Score: 1

      Oh! You must be one of the so called Very Elder Ones! I bow before you :)
      Probably our user creation times differ just in hours. Being that you seem to post from NZ I'd guess there is some relation between the first UID's and the timezones from the users (I'm in Europe)

      PS: please disregard the following sig...

      Victor

  15. UNIX timestamps by grub · · Score: 1


    Will I be able to view the UNIX times on my Linux box? :)

    --
    Trolling is a art,
  16. Wow by The+Bungi · · Score: 1

    I find myself quivering with excitement and anticipation.

  17. Yeah, but... by kenthorvath · · Score: 1

    I'm looking forward to 6969696969... When will THAT happen?

    1. Re:Yeah, but... by MeltyMan · · Score: 1

      According to the SCO box here at work, Wed Aug 28 22:59:37 1918... :)

      --
      "Ummmm..." ...The programmer's "Om."
    2. Re:Yeah, but... by ichimunki · · Score: 1

      1918? Is that possible? I thought Unix time started in 1970.

      --
      I do not have a signature
    3. Re:Yeah, but... by cxreg · · Score: 1

      Actually, it was Sat Feb 1 18:41:36 1992

      Where were YOU?

    4. Re:Yeah, but... by MeltyMan · · Score: 1

      Unixtime is stored as signed... when plugging that big of a number in :"6969696969", it over-runs the positive number range and can create a negative number in memory... try plugging a negative number into a localtime(), and you can get a date previous to 1970.

      --
      "Ummmm..." ...The programmer's "Om."
    5. Re:Yeah, but... by JCCyC · · Score: 2

      Works in hex too (only 4 69's allowed, sorry...):

      >perl -MPOSIX -le 'print ctime(0x69696969)'
      Thu Jan 15 20:25:45 2026

  18. Java time by andyh1978 · · Score: 5
    3E08 approx. - Java time fails - (64-bit signed milliseconds from 1970) - A.D. 292,278,994-08-17 Sun 07:12:55.808 GMT
    I knew Java was over-engineered, but this is taking things a bit far. :-p (and possibly being a little optimistic on the popularity of Java over the next 292 million years)
    1. Re:Java time by ryuspeed · · Score: 1

      I don't think Sun was being optimistic at all. I mean afterall they're the dot in dot-com. =)

    2. Re:Java time by stripes · · Score: 2
      a little optimistic on the popularity of Java over the next 292 million years

      The part I thought was optimistic was the press release where they promised to have a fix available at least 30,000 years in advance.

    3. Re:Java time by Anders1 · · Score: 1
      I knew Java was over-engineered, but this is taking things a bit far. :-p (and possibly being a little optimistic on the popularity of Java over the next 292 million years)

      It's better to over-engineer than to under-engineer. 2038 isn't too far away; things would be a whole lot nicer if everyone had used 64-bit timestamps. And I don't think anyone's going to miss the extra 4 bytes of storage needed.

    4. Re:Java time by otis+wildflower · · Score: 1

      Too bad date/time manipulation in Java is such a steaming pile of shite.. :(

      Your Working Boy,
      - Otis (GAIM: OtisWild)

    5. Re:Java time by Kishar · · Score: 1

      No, RFC 882 is the dot in dot-com.
      :)
      --

    6. Re:Java time by Cyclopedian · · Score: 2
      If you like that, take a look at this:

      2E69 approx. - A.D. 1,834,652,618,499,343,590,337,415,746,119,712,509, 834,124,421,548,072,260,582,352,567,003,896-01-25 Sat 17:06:08 GMT, UNIX 256-bit signed time_t fails.

      I'd say that's looking far into the future. =)

      -Cyc

    7. Re:Java time by Whelkman · · Score: 2

      In AD 1,834,652,618,499,343,590,337,415,746,119,712,509, 834,124,421,548,072,260,582,352,567,003,896 war was beginning. All your timestamp belong to...nevermind...

  19. Time zones by kahuna720 · · Score: 1
    Do you know how many time zones are in the Soviet Union?

    Eleven.

    Eleven?

    It's not even funny. It's ridiculous.

    --
    props to all dead homiez
    1. Re:Time zones by nanojath · · Score: 1

      Dude, the Soviet Union BROKE UP like, years ago and stuff. All the satellites have solo careers now, the comeback hype has come to nothing. Watch some news, man.

      --

      It Is the Nature of Information to Transgress Artificial Boundaries

    2. Re:Time zones by Tech187 · · Score: 1

      I think he said 'Holy Roman Empire' or something. But I'm not sure. Some obsolete empire or other.

    3. Re:Time zones by mge · · Score: 1
      look at a map (preferrably 10 or 20 yrs old).
      find the old Soviet Union (since you're educated in the US, I'd understand if you gave up now).
      measure how wide it is.
      find the continental USA.
      compare.

      A simpler way of looking at it is that the USSR spread across Eleven Twenty-fourths of the globe, about 45%.

      All software is flawed. All hardware is flawed. If you haven't learned that yet,

  20. Re:If calling 1/1/01 the Millenium wasn't geeky en by scotch · · Score: 1
    by my non-geek friends.

    NON-geek friends? What kind of geek are you?

    --
    XML causes global warming.
  21. In other random news: by stilwebm · · Score: 2

    My car's odomoeter will roll over to 12345 in 93 miles.

    1. Re:In other random news: by sacherjj · · Score: 1

      Pah. Mine is long past 123456...

    2. Re:In other random news: by That+Fat+Guy · · Score: 1
      I remember hitting 200,000 in my Camry. Boy, that was a fun day. Then 222,222 was also fucking exciting. It's over 230,000 now. But recently I gave it to some girl who had her car break down in Ohio, and she sold it to buy a bus ticket to Massachusetts. (I'm guessing it was shittier than mine). Yup, and I got a newer car now, thank God.

      --that fat guy

      ----

      --

      ------
      My karma's at -6!

    3. Re:In other random news: by ahknight · · Score: 1
      Mine should be at 123456 in under 200. I think I win.

      I have to get in it like the Dukes of Hazzard because the door handles don't work (inside or out) but it made it this far ... by some divine grant.

      Whoever said Perl programming paid never lived in Austin.

    4. Re:In other random news: by stilwebm · · Score: 1

      In terms of numbers, yes, but at least mine's still under warranty. :-) Not for long though at this rate.

  22. Look, ma, no modules! by J'raxis · · Score: 5
    No module needed:
    perl -le 'print scalar gmtime(999999999)'

    And of course localtime() for your own timezone.

    ...I am the Raxis.

    1. Re:Look, ma, no modules! by ajs · · Score: 2

      Since it's the same number of keystrokes, I didn't bother to introduce scalar context to the Slashdot masses, many of whom are python programmers and would not be comfortable with such flexibility ;-)

      Actually, the fun part is using strftime to pull out all sorts of details like:

      perl -MPOSIX -le 'print strftime("24HR time: %H%M",localtime 999999999)'

      or

      perl -MPOSIX -le 'print strftime("It is on a %A", localtime 999999999)'

      Fun stuff. Perl is your friend.

      (and yes, the Python snipe was humor. I have a deep respect for Python even if ESR is a dink about the "recovered Perl programmer" thing...)

    2. Re:Look, ma, no modules! by J'raxis · · Score: 1
      Ah, yes, strftime, probably my favorite POSIX module function. I always use strftime when I want a date output in scripts, because I prefer the ISO8601 "largest-to-smallest" format, e.g. 2001-04-18 16:18:10 (%Y-%m-%d %H:%M:%S). But when I'm doing Perl one-liners I prefer to be lazy and not think of %entities, satisfied with the usual Unix date string ("asctime"? I think...).

      Of course, strftime's got nothing on PHP's date() function... :)

      Oh, and without scalar context, you get a mess ("54222018310131070") -- not to mention list context is very bad for you.

      ...I am the Raxis.

    3. Re:Look, ma, no modules! by innit · · Score: 1

      That didn't take into account my BST settings - it produced a time an hour earlier than the original command. That time wouldn't have been valid this morning nor would it be valid in September.

      *shrug*

      xx Stuii!

  23. Re:number sequences by don_carnage · · Score: 1

    ahhh...what amuses a geek. :^)
    --

  24. others I've missed by cornflux · · Score: 1

    Damn, I can't believe I missed 696969696! Seeing 31337 would have been cool, too. Uhm, yeah.

  25. Using Shell and GNU date by dermond · · Score: 2

    date -d "$((987654321 - $(date +%s))) sec"

    tells you in your local time when that event will happen... (well evntually it is 1 second off if the first date terminates not in the same second as the second... lg mond.

  26. Its just a birthday celebration of time! by dattaway · · Score: 2

    9/9 also happens to be my birthday, so my numbers will be rolling over too. Woooooohooooooo!

    1. Re:Its just a birthday celebration of time! by Tech187 · · Score: 1

      Only if you're still alive in the year 9999, since you've obviously missed the years 99 and 999.

  27. But tell us... by Black+Parrot · · Score: 3

    > Thursday, April 19, 2001 ... the UNIX clock will read 987654321, which is pretty cool.

    OK, but when are we going to get the Slashdot User #987654321 throw-down troll account?

    We went from 100000 to 400000 so fast that I wouldn't expect it to take too much longer.

    --

    --
    Sheesh, evil *and* a jerk. -- Jade
    1. Re:But tell us... by Requiem · · Score: 1

      I'll say. The number of slashdot accounts is just insane.

    2. Re:But tell us... by That+Fat+Guy · · Score: 1
      "I'll say. The number of slashdot accounts is just insane."

      I'll say!

      ----

      --

      ------
      My karma's at -6!

  28. something to discuss by SirSlud · · Score: 2

    I have something to discuss .. like, why does no one think its fun to know when it happens? Has the market bust turned all us geeks into blinder-wearing profit-seeking business types? How useful is the obfuscated Obfuscated C Code Contest? But geeks still seem to dig it ... :) While I may not be staring at 'while (1) { printf("%lu\n", time()); }' when the rollover happens, at least its cool to know we lived the moment! It only happens one in one billion times!

    --
    "Old man yells at systemd"
    1. Re:something to discuss by poot_rootbeer · · Score: 1

      EVERY moment happens only once! There is nothing that makes 987,654,321 seconds since epoch any more significant than any other second in the history of ever, except for the human brain's tendency to pick patterns out of noise.

    2. Re:something to discuss by teefal · · Score: 1

      "he lives below the senseless stars, and writes his meaning in them"

  29. Hmm.....nice wording by RiotXIX · · Score: 2

    When UNIX makes this mistake it, it's "pretty cool". What would it be if MS-Windows did it?

    --
    "You know you don't act like a scientist, you're more like a game show host." Dana Barret
    1. Re:Hmm.....nice wording by andyh1978 · · Score: 3

      Then we call it 'Knowledge Base article Q216641' (after quickly working out how long 2**32 milliseconds is)...

      Unfortunately you don't have until 2038 in this case.

    2. Re:Hmm.....nice wording by Eil · · Score: 2


      Weird behavior is expected in Windows, so when UNIX does it, everybody just stares in awe...

  30. Descending? by tycage · · Score: 1

    In my universe, time is flowing forward. --Ty

    1. Re:Descending? by spankfish · · Score: 1
      In my universe, time is flowing forward. --Ty

      That's your perception, and it's interesting. Different cultures have widely varying perceptions of "time". Most people in Western cultures tend to view time as an axis we are walking along in a forwards direction.

      Some tribal societies perceive time in the completely reverse way, e.g. they will view time as a river, and they are on the shore looking in the direction the river is flowing to, and say that if they want to postpone something, they'll put it back, not forward as Westerners would.

      Bugger. That confused me.

      --

      --

      NO TOUCH MONKEY!
    2. Re:Descending? by tycage · · Score: 1

      I'm sorry, did I confuse you? Do I need to raise my hand when I make a joke?

      *raises hand*

      --Ty
    3. Re:Descending? by Webmoth · · Score: 1

      Well, before the birth of Christ, most societies measured years by how long a ruler reigned... for example "in the 17th year of King Nevacudsneezer...", always resetting the calendar to 0. This made things rather inconvenient, since you had to know how long every king reigned in order to figure out how old something was.

      After Jesus Christ came and went, someone got the bright idea of defining his birth (or thereabouts) as a "zero point" as most of humanity would know of Jesus and have a rough idea of when he was around.

      This, however, raises and interesting paradox: reference to time before Jesus Christ both ascends and descends: at a resolution of 1 [year|decade|century|millenium|etc....], we see time decrementing as it progresses (note that we do not use a "negative" value), but at a finer scale (1 [month|week|day|hour|minute|second|etc...]) we see time incrementing.

      ~Jon

      --
      Give me my freedom, and I'll take care of my own security, thank you.
  31. signed? by Leto-II · · Score: 1

    Is there any logical reason for the date to be using a signed number as opposed to unsigned?

    Did the great Unix engineers think we'd find a method of time travel and take Unix back to before the epoch?

    Fear my low SlashID! (bidding starts at $500)

    --
    Do not anger the worm.
    1. Re:signed? by Anders1 · · Score: 2

      Whether or not UNIX will be running before 1970, it still might be useful to store dates before 1970, such as birthdates, etc.

    2. Re:signed? by mph · · Score: 1

      time_t is not meant for storing arbitrary dates. It's meant for storing UNIX-relevant things like the current time and the boot time and file timestamps. Use struct tm or something if you need other dates and times.

      time_t is signed because time(3) is documented to return -1 if there is an error.

  32. Solution to 2038 bug by DeadVulcan · · Score: 2

    I think the best solution to the year 2038 bug is simply to roll everybody's clock back to the year 1970. Problem solved!

    Besides, disco was so groovy, wasn't it? Yeah, baby, yeah!!

    --

    --
    Accountability on the heads of the powerful.
    Power in the hands of the accountable.
    1. Re:Solution to 2038 bug by Anders1 · · Score: 1
      I think the best solution to the year 2038 bug is simply to roll everybody's clock back to the year 1970. Problem solved!

      That will probably happen anyway, whether you like it or not! :-)

    2. Re:Solution to 2038 bug by segmond · · Score: 2

      Very stupid solution, How will you deal with timestamps from 2037, 2036? they will be times well into the future, so the only solution that will happen will be the use of larger type to represent the number.

      --
      ------ Curiosity killed the cat. {satisfaction brought it back | it didn't die ignorant | lack of it is killing mankind
    3. Re:Solution to 2038 bug by GypC · · Score: 2

      Man, if it was 1970 we'd still have to wait 7 or 8 years for disco... where's your music history?

      Sheesh, kids nowdays...

  33. Other significant happenings on that date... by JWhitlock · · Score: 2
    This will be the first of two such "significant" events in 2001, the second being 01:46:39 UTC on 2001-09-09, when the clock will read 999999999 (and then of course "roll over" to 1000000000 one second later).

    The other significant thing that will happen on that date is that moderators the world over will be confused, wondering if the moderation guidelines actually changed or not.

    (This is in reference to the message moderators get saying "Have you read the Moderation Guidelines yet? Updated 9.9". They were updated 9/9/1999, which I guess was such a cool date that they never bothered changing it again, just updated the FAQ. Of course, saying "Updated 9.9.99" would be even cooler. Maybe CmdrTaco is waiting for 1.1.11 to update them again, or even 2.2.2222...

    1. Re:Other significant happenings on that date... by b1t+r0t · · Score: 2

      I guess he didn't update on 1.1.1 because he had a hangover.

      --

      --
      "Open source is good." - Steve Jobs
      "Open source is evil." - Microsoft
    2. Re:Other significant happenings on that date... by Zach+Baker · · Score: 1

      Wow, the moderation guidelines were updated on the same day Sega launched the Dreamcast in the US (oh, and FF8, too). It seems so long, long ago...

  34. Re:illegalities by silicon_synapse · · Score: 1

    So because it's illegal, it's automatically wrong?


    --

  35. Re:assistance by silicon_synapse · · Score: 2

    Not being helpful doesn't make it a troll


    --

  36. Also..... by ZanshinWedge · · Score: 5

    In case you were wondering, unixtime 123456789 occured on
    Thu Nov 29 13:33:09 1973
    (please do not waste mod points on this post, thanks)

    1. Re:Also..... by innit · · Score: 1

      And 1234567890 will happen on Fri Feb 13 23:31:30 2009. Something to look forward to :)

      xx Stuii!

  37. Fix for 2038 by hey · · Score: 1

    Why not just change:

    typedef long int __time_t;

    into:

    typedef unsigned long int __time_t;

    1. Re:Fix for 2038 by Black+And+Decker · · Score: 1
      That's quite simple.

      The negative numbers are used to represent the years prior to 1970.

      --
      Through the mud and the blood into the green field beyond...
    2. Re:Fix for 2038 by DarkEdgeX · · Score: 1
      Why not just change:

      typedef long int __time_t;

      into:

      typedef unsigned long int __time_t;

      The solution us to use 64-bit signed integers to represent the time. A big change though, so I don't expect that to happen. Plus, as someone else said, your solution would ruin dates prior to 1970 (which I'm sure some apps use).

      --
      All I know about Bush is I had a good job when Clinton was president.
  38. The Divine intention is pretty clearly... by devphil · · Score: 2


    ...that anybody still using a 32-bit system in four decades deserves what he gets.

    Come on, does that sound so likely? Four decades ago you were lucky to be able to afford all 8 bits in your 8-bit system. And the graph is not a linear one (think Moore here), so four decades from now they'll be laughing at us for working in such a cramped 32-bit address space.

    Solaris has been 64-bit for years now. Same for a number of other Unixes. If somebody is honestly worried about time_t, tell him that a 64-bit time_t can hold more seconds than the probable remaining lifetime of the universe.

    The Divine intent is the same here as it is for folks driving fast in highway construction zones: stupid people deserve what happens to them.

    --
    You cannot apply a technological solution to a sociological problem. (Edwards' Law)
    1. Re:The Divine intention is pretty clearly... by andy@petdance.com · · Score: 2
      64-bit time_t can hold more seconds than the probable remaining lifetime of the universe.

      "Probable"? What other dead universes are you using for a benchmark? And who is giving odds on these probabilities?
      --

    2. Re:The Divine intention is pretty clearly... by JCCyC · · Score: 2

      Regardless of architecture bits, shouldn't the time_t type be promoted to 64 bits right now, just in case? 32-bit gcc has the 'long long' integer which is just that size.

      And if you wrote code like:

      long mytime;
      time(&mytime);

      Then you deserve the coredump you're going to get. They didn't create types like time_t and size_t without a reason, you know.

  39. Poster needs to take some Math and Comp Sci by loki2eng · · Score: 1

    These numbers are arbitrary. This is a smaller version of the same kind of superstition that gives rise to believing in Nostradamus and other hooey.

    1. Re:Poster needs to take some Math and Comp Sci by Tech187 · · Score: 1

      Since this is primarily a geek site, you would think they'd have a clue and at least place more significance on the numerology of Hexadecimal numbers. Let's face it, decimal numbers are for the pointy-haired crowd.

  40. Wow by AME · · Score: 1

    Never thought I'd see a link to John Stockton's website in a Slashdot story. Talk about world's colliding!

    --

    --
    "I have a good idea why it's hard to verify programs. They're usually wrong." --Manuel Blum, FOCS 94
  41. Using date (Re:Using Perl....) by MavEtJu · · Score: 1

    On FreeBSD:
    [~] edwin@p6>date -r 987654321
    Thu Apr 19 06:25:21 CEST 2001


    --
    bash$ :(){ :|:&};:
  42. It's Okay! There's a solution. by neo · · Score: 1

    Article on Chronology

    Luckily we have more time. It's only the year 936AD and as soon as we realize it, we'll set all the unix clocks back.

  43. "One Billion Seconds of Unix" by John+Whitley · · Score: 4

    I dunno, but that sounds like one of the best excuses for a geek party I've ever heard.

    Heck, that might even be a big enough party to be called a "Conference." ;-)

    1. Re:"One Billion Seconds of Unix" by felipeal · · Score: 1

      Someone once mentioned that on the SVLUG list, as it is also close to the Linux 10th birthday, in August.

    2. Re:"One Billion Seconds of Unix" by Anonymous Coward · · Score: 2

      A true geek party would take place at 1073741824 seconds of unix.

    3. Re:"One Billion Seconds of Unix" by isomeme · · Score: 5
      I dunno, but that sounds like one of the best excuses for a geek party I've ever heard.

      Predicted party song:

      One billion seconds are stored in time_t,
      One billion seconds of time;
      Decrement, post an event,
      Nine hundred ninety-nine million, nine hundred ninety-nine thousand, nine hundred ninety-nine seconds are stored in time_t...

      --

      --
      When all you have is a hammer, everything looks like a skull.
    4. Re:"One Billion Seconds of Unix" by Dwonis · · Score: 3
      One billion seconds are stored in time_t,

      time_t is a type, not a variable. You can't store a value in time_t. 8-)
      ------

    5. Re:"One Billion Seconds of Unix" by isomeme · · Score: 1
      One billion seconds are stored in time_t,

      time_t is a type, not a variable. You can't store a value in time_t. 8-)

      The terrible thing is that I'm geeky enough that I agonized over this minor quibble before posting my version. I finally convinced myself that it could be considered poetic license. So there. :-)

      --

      --
      When all you have is a hammer, everything looks like a skull.
  44. UNIX title is Misleading -- Think ANSI C... by TimeHorse · · Score: 1

    ANSI C defined the epoch as 00:00:00 UTC 1 January 1970 C.E. and defines the set of functions in the time.h library as returning a structure -- among others -- as time_t, defined as a long, which is 32-bits, and is the number of seconds since the epoch. The problem is of course that a 32-bit number can only store so-many seconds, so that come Jan 2038, when just over 2 billion (2e+9) seconds have passed, we go into negative numbers, perhaps around 1902? :) Anyway, so all you are saying is if we do a "time(NULL)" the time_t, or long, returned when converted to decimal will be "987654321" and that we are rapidly approaching "1000000000" and expect "1234567890" sometime later this decade. Okay, I see. Now as for any other language which uses the same time structure, keep in mind that it was probably compiled, if not directly, than inderectly under C at some point (even if it is now 'self-compiling' as C is. So let's give credit where credit is due, people! Long live ANSI C!!!

    Be Seeing You,

    A C++ programmer, really!

    --
    Time Lord, Dark Horse: The Techno Mage of Gallifrey
    1. Re:UNIX title is Misleading -- Think ANSI C... by fatphil · · Score: 1

      "as time_t, defined as a long, which is 32-bits"

      Wrong. You'll never find that definition in the ANSI C library.
      What you will find is that time_t must be signed arithmetic type, as -1 is used as a return value for some functions. There's nothing to stop either a time_t, or a long, from being more than 32 bits.

      FP.
      --

      --
      Also FatPhil on SoylentNews, id 863
    2. Re:UNIX title is Misleading -- Think ANSI C... by Dg93 · · Score: 1
      And where do you think ANSI C got that idea for the Epoch from?


      For that matter, where do you think C comes from?

      --
      --Dg
    3. Re:UNIX title is Misleading -- Think ANSI C... by TimeHorse · · Score: 1

      My point however is this is not JUST a property of UNIX. For one thing, your old friend Bill Gates has been using the same system for years and I'm sure you'll find a lot of other 'post-Unix' OSes using the same thing. Now I happen to know that MS is really mixed up because they use the ANSI time_t which you admit at least IS part of the standard, as well as the tm structure, also part of the standard, CTime and CTimeSpan, part of MFC and DATE / COleDateTime which actually measures DAYS, not seconds since the Epoch, in this case 31 December 1899 in a double-precision floating point value where the 'fraction' represents the fraction of the day in question (always positive, which makes negative numbers a real pain to parse). This is a much more elegant solution (for 'positive' dates) IMHO but believe me I still prefer using time_t, the numeric type often implemented as long ;) to anything MS specific, and more so because FP Arithmatic is always slower than integer in the practical sense. :)

      Now chill out and don't get so moody. I'm merely trying to point out that this turnover is even BIGGER than UNIX and really effects almost every computer in use today. So let's celebrate together and be happy! Party Time!!

      Be Seeing You,

      Jeffrey.

      P.S. the last time the bits in little-endien read FEDCBA9876543210 on a Date object was 3.3e+300 years ago and I missed it, bugger! :(

      --
      Time Lord, Dark Horse: The Techno Mage of Gallifrey
  45. Watch it live... by felipeal · · Score: 3

    ... with the command:

    watch -n 1 date +%s

    or better yet:

    watch -n 1 'echo "The time is near: `date +%s`"'

    1. Re:Watch it live... by Alatar · · Score: 1

      no watch in /usr/bin /usr/ucb /usr/sbin /usr/local/bin /usr/ccs/bin /usr/xpg4/bin

    2. Re:Watch it live... by felipeal · · Score: 1

      Hmm, I thought watch was a standard tool, but it belongs to procps:

      #rpm -qf /usr/bin/watch
      procps-2.0.7-8

      It is a very useful tool, that "executes a program periodically, showing output fullscreen"".
      Anyway, if you don't have it, just the date +%s should work...

    3. Re:Watch it live... by Sapien__ · · Score: 1
      Try

      while sleep 1; do date +%s; done

      instead.

    4. Re:Watch it live... by rm+-vrf · · Score: 1
      or even better:

      while sleep 1; do echo -ne "The time is near: `date +%s`\r"; done
  46. Simpler solutions: 64-bit or unsigned by yerricde · · Score: 2

    I think the best solution to the year 2038 bug is simply to roll everybody's clock back to the year 1970

    There's a simpler solution: typedef unsigned long time_t; should take us into the 22nd century before we have a problem. (The DJGPP C library already does this.) Another solution is typedef long long time_t; which is on nearly the same order of magnitude as the best estimates for the age of this universe.

    --
    Will I retire or break 10K?
    1. Re:Simpler solutions: 64-bit or unsigned by bmajik · · Score: 2

      I beleive the reason it was not done this way in the first place is so you could do date math.

      I may want to add a negative time increment to the current time to calculate some past date. Adding a signed to an unsigned doesn't always work so well :)

      Changing time_t is not a transparent change. Might as well make it 64bit unsigned, and take the migration penalty once, across the board, as opposed to randomly, on some apps, after you thought they were working for a few months of production use.

      --
      My opinions are my own, and do not necessarily represent those of my employer.
  47. 2038 - Now is the time to start work by sjmurdoch · · Score: 1
    I don't know if there are already plans about the 2038 problem but here are my thoughts on it.

    Since in the next few years 64 bit processors will be coming into the mainstream I think now is the time to start work on fixing the Year 2038 issue. Operating systems will need to be changed to move from 32 to 64 bit word lengths so why not take this oppertunity to switch from 32 bit to 64 bit times on Linux and *BSD (and any other Open Source operating systems you care to mention).

    As well as rewiting the operating systems, applications may need work for the IA64 chips. While this is being done why not make the programs compatible with both 64 bit and 32 bit timestamps?

    A further advantage would be to take make better use of the extra bits and switch to milliseconds since 1970, instead of seconds. This extra precision could be useful for some applications and will still be good till 300,000,000 AD.

    Any comments?

    --
    Steven Murdoch.

    --
    Steven Murdoch.
    web: http://www.cl.cam.ac.uk/users/sjm217/
    1. Re:2038 - Now is the time to start work by Alien54 · · Score: 2
      Since in the next few years 64 bit processors will be coming into the mainstream I think now is the time to start work on fixing the Year 2038 issue. Operating systems will need to be changed to move from 32 to 64 bit word lengths so why not take this oppertunity to switch from 32 bit to 64 bit times on Linux and *BSD (and any other Open Source operating systems you care to mention). A further advantage would be to take make better use of the extra bits and switch to milliseconds since 1970, instead of seconds. This extra precision could be useful for some applications and will still be good till 300,000,000 AD

      This is useable and sensible. I can see this.

      [inserting tongue in cheek]

      But we might not need to worry because of all of the other disasters that are proposed to be happening between now then then, including the end of the Maya Epoch (get your Mayan Date TShirt here, and the destruction of civilization by asteroids in 2028 (orbit info here, Seattle Times disinfo here, commentary here)

      And, with the crashomatic feature in MS OS software, the world will come to an end well before that when the MS .NET system gets hit with a succesful .NET virus that wipes out lots of data from the hard drives. Of course, it will be a MS email virus, that scans the network for vulnerable files.

      Check out the Vinny the Vampire comic strip

      --
      "It is a greater offense to steal men's labor, than their clothes"
    2. Re:2038 - Now is the time to start work by The+Critisizer · · Score: 1

      The Critisizer agrees. Let the daemons loose.

    3. Re:2038 - Now is the time to start work by SpaceLifeForm · · Score: 1

      A 64 bit time_t has been discussed for some time now (esp in csy2k). It does not require a 64 bit processor to implement either.

      As to changing it to be in milliseconds, that would be a problem as you are then changing the *interpretation* of the time_t, which could require inspection of the code which is much
      more work than a re-compile.

      Of course a 64 bit time_t will result in extra work if it is stored in a file or database as a 64 bit field/column.

      --
      You are being MICROattacked, from various angles, in a SOFT manner.
  48. Unsigned long by J'raxis · · Score: 2
    That would only double the amount of time available, pushing the cutoff to somewhere around 2106. Unix is still being used now, probably will be in 2038, what makes you think it won't be in 2106? ;)

    Also, I don't know if this is just a Perl thing, but dates "past" 2**31-1 (i.e., negative numbers when "signed") seem to be used to represent dates far before 1970.

    For example:
    % perl -le 'print scalar gmtime(2**31)'
    Fri Dec 13 20:45:52 1901
    % perl -le 'print scalar gmtime(2**31+2)'
    Fri Dec 13 20:45:54 1901
    % perl -le 'print scalar gmtime(2**31+2**30)'
    Mon Dec 23 10:22:56 1935

    ...I am the Raxis.

    1. Re:Unsigned long by fatphil · · Score: 1

      2038 is +2G
      1970 is zero
      1901 is -2G

      What's the problem?

      FP.
      --

      --
      Also FatPhil on SoylentNews, id 863
    2. Re:Unsigned long by J'raxis · · Score: 1
      I... think that's what I just said.

      I have just never seen negative numbers used as UNIX timestamps before, and having just now seen it (by accident) in a Perl command, I thought it was just another odd Perl feature.

      ...I am the Raxis.

  49. Ok, maybe I'm looking too far into the future, but by proxima · · Score: 2

    Is there any plan for a *nix wide upgrade to a 64 bit time variable in the next few years? I figure we ought to take care of this now, otherwise the entire *nix community will be mocked by the Windows and Mac communities in the 2030s. Let's just get the upgrade over with and not have to worry about it in the future.

    --
    "The universe seems neither benign nor hostile, merely indifferent." --Carl Sagan
  50. Date of birth by yerricde · · Score: 2

    Is there any logical reason for the date to be using a signed number as opposed to unsigned?

    I assume that the architects of the system wanted to represent their date of birth. It's the same thing that motivated the Mac OS designers to choose 1904 as the Mac's (unsigned) epoch.

    --
    Will I retire or break 10K?
    1. Re:Date of birth by b1t+r0t · · Score: 2

      1904 was chosen on the Mac because 1900 was not a leap year, and it made the calculation easier.

      --

      --
      "Open source is good." - Steve Jobs
      "Open source is evil." - Microsoft
  51. Interesting Moments by nquartz · · Score: 1
    I was alone in my office while I watched the clock roll to 11:11 am. That was November 11, 1999. The full time stamp to observants would have read 11:11:1999. Observing that moment, I thought, was cool.

    Then again, I'm a geek.

    --

    --Any sufficiently reliable magic is indistinguishable from technology.

    1. Re:Interesting Moments by Paul+Jakma · · Score: 1

      presumably so that it would be really easy to remember so that there could be no confusion amongst the troops as to when the Armistice came into effect.

      --
      I use Friend/Foe + mod-point modifiers as a karma/reputation system.
  52. Re:If calling 1/1/01 the Millenium wasn't geeky en by Liquid(TJ) · · Score: 1

    I have a feeling that if you call this the "real reason for your SO's birthday party, you'll just be celebrating getting you ass kicked...

  53. Other significant dates, albeit "RL"... by jd · · Score: 2
    4/3/2001 and 3/4/2001 - contain all 1st 5 digits. Almost in order, too, though that won't happen until 2100. By which time, I probably won't care.

    3/3/2001 - all sections add up to 3. Also, it's an Odd Day - all non-zero digits are odd, AND all sections are odd, AND all section's digits sum up to odd totals. Since these are also all prime, it was also a Prime Day.

    Trivia Question: When will be the next Prime Millisecond, as measured by RL -and- by the Unix clock?

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:Other significant dates, albeit "RL"... by Col.+Klink+(retired) · · Score: 2

      > 3/3/2001 ... Also, it's an Odd Day - all non-zero digits are odd

      Except for the digit "2".

      --

      -- Don't Tase me, bro!

    2. Re:Other significant dates, albeit "RL"... by skajohan · · Score: 1
      Shouldn't an odd day require that *all* digits are odd? In other words, we won't see one for a loooong time. Blah blah blah..., just go read the discussion from 1999-11-19.

      (Zero is an even number as it divides by two without a reminder. And year-month-date is a better way of writing dates, it sorts better.)

    3. Re:Other significant dates, albeit "RL"... by jon_adair · · Score: 1

      My wife was born on 4/5/67. Her grandmother was born on 12/13/14. Spooky.

    4. Re:Other significant dates, albeit "RL"... by kernel-panic · · Score: 1
      But then again, 2 is an odd prime number...

      It's the only prime number that is even, and that's odd :-)

      --
      main(i){putchar((1397178701>>(i/2+(i==3))*8)+(i/2= =2)*7*(i-3))^83&&main(++i);}
  54. Re: The only reason for time.. by r_j_prahad · · Score: 1

    Actually, everything DOES happen all at once. Your brain only simulates for you the passage of time so that it is not completely overwhelmed. You will already be dead before you finish reading this, of course, and yet unborn as well. Requiescat in peace and happy birthday.

  55. Picking patterns out of noise... by ChaoticCoyote · · Score: 2

    ...is one of the distinguishing characteristics of our technological species. The signifigance is not in the pattern, but in the recognition thereof.


    --
    Scott Robert Ladd
    Master of Complexity
    Destroyer of Order and Chaos

  56. Really? by tycage · · Score: 1

    I honestly did not know this.

    That's what I like about /. I make an off the cuff smartass comment, and I actually end up learning something.

    --Ty
  57. Re:illegalities by BorgDrone · · Score: 2

    maybe you or the cops you do realize it's illegal right?
    No it's not, I can go out and buy some right now, walk over to the police building and offer some to one of the officers, he'll probably smile at me and refuse the offer.
    just because it's illegal in your lame-ass country doesn't mean it's illegal everywhere
    ---

  58. Re:Ok, maybe I'm looking too far into the future, by Tuzanor · · Score: 2

    it depends on the UNIX. Solaris (sparc), Digital Unix, etc, are all 64 bit already as they run on 64 bit processors.

  59. Actually, this is of practical value by Kiwi · · Score: 2
    --

    The secret to enjoying Slashdot is to realize that it should not be taken too seriously.

  60. Does anyone know ... by nachoworld · · Score: 2

    of an access to a website, etc. that has a Unix time counter (if that's even possible)? And what's the significance of the date chosen to be time 0?

    ---

    --

    ---
    I'm just an ordinary man with nothing to lose.
    1. Re:Does anyone know ... by J'raxis · · Score: 1
      1970-01-01 is reasonably close to when Unix was first invented.

      Here's a counter, don't know of a website, but it'd be easy enough:
      perl -le 'while(($time=time())<=1000000000){ sleep(1); print (1000000000-$time); }'
      (See also #188)

      ...I am the Raxis.

  61. Re:It's Okay! There's a solution. by FiNaLe · · Score: 1

    Wouldn't that result in a negative timestamp? Subtract the numbers of seconds till 1978 from 0...

    Fear and Loathing in Unix

    San Francisco in the middle seventies, was a very special time and place to be a part of, but no explanation, no mix of code or shell scripts or hardware can touch that sense of knowing that you were there and coding, in that corner of time in the world. Whatever it meant. There were errors in any direction, at any hour... you could debug code anywhere. There was a fantastic universal sense that whatever we were doing was right, that we were winning, and that I think was the handle. That sense of inevitable victory over the forces of old and evil. Not in any mean or military sense, we didn't need that. Our OS would simply prevail. We had all the momentum. We were riding the crest of a high and beautiful wave. So now, less then 60 years later, you can go up on a steep hill in California and look east over rolling brownouts, and with the right kind of eyes, you can almost see the high water mark. That place where the wave finally broke... and rolled over.

    --
    Earn cash in your spare time! Blackmail your friends!
  62. For those of you who want to watch the count: by Flying+Headless+Goku · · Score: 1

    perl -e 'while(($time=time())<=987654321){sleep(1); print "$time\n"}'
    --

    --
  63. A fancy time zone convertor by bram.be · · Score: 1
    Perl and a the time zone convertor websites are overkill. Try this sexy unix command:
    date -d '1970-01-01 987654321 sec' +"%Y-%m-%d %T %z"
  64. Don't be ridiculous. by Flying+Headless+Goku · · Score: 1

    It's clear that the obvious solution is to switch to 33-bit signed ints, thus buying us another 2 billion seconds without losing reverse-compatibility and using a minimum expenditure of bits. That way everybody will be happy.
    --

    --
  65. Not as big of a deal. by SuperguyA1 · · Score: 1

    chances are there is no ATM, Airline, or Missile defense control computer systems running on a bash shell script. At most my automatic comix downloader won't work:). I'm not saying there won't be any issues when this rolls over, but I think there is even less of a reason to worry about it then there was for the 2000 rollover.

    --
    "as plurdled gabbleblotchits on a lurgid bee" - Prostetnic Vogon Jeltz. (One man's humorous is another mans flamebait)
    1. Re:Not as big of a deal. by mike_the_kid · · Score: 1

      Actually, I wrote korn shell code for a few air traffic control systems. So no, not bash, but korn. Feel better?

      --
      Troll Like a Champion Today
    2. Re:Not as big of a deal. by SuperguyA1 · · Score: 1

      hmmm what airports, I think I'll take the train:)

      --
      "as plurdled gabbleblotchits on a lurgid bee" - Prostetnic Vogon Jeltz. (One man's humorous is another mans flamebait)
  66. Re:at least a couple of things by stardyne · · Score: 1

    Ok, you've said enough about Alcohol and Tobacco, but what about marijuana?

  67. and i was hoping... by jaiteend · · Score: 1

    that i was going to have to take the day off to geek out with cohorts. alas, the date in question falls on a weekend, for most, if not all, of the world.

    but then again, was that the original plan..?
    those two wacky berkely guys

    --
    and the Irishman took the fly in his hands and yelled, "spit it out!"
  68. Oh great. by sllort · · Score: 1

    Do you have any idea how hard it's going to be to sell the public on the Y2.038K bug? Jesus.

    I haven't seen a challenge like this since OS/2...

  69. Indeed by The+Critisizer · · Score: 1

    Indeed.

  70. The three letter acronym by geophile · · Score: 2

    ... would be 7f6. (As in 0x7f6)

  71. uh by fizban · · Score: 1
    They forgot one:

    2001-04-19:09:53:27 - Human Life Fails (Chinese at fault. U.S. refuses to apologize for failure)

    --

    --

    +1 Insightful, -1 Troll. What can I say, I'm an Insightful Troll.

  72. Re:Ok, maybe I'm looking too far into the future, by FyreFiend · · Score: 1

    If memory serves Mac clocks will run out at the same time, at least with Classic

    --
    - Apple Computer......proudly going out of business for over twenty years.
  73. But of course by apsmith · · Score: 2

    that's why I have my Gnome desktop clock displaying UNIX time:
    987628906
    987628907
    987628908
    .
    .
    .

    --

    Energy: time to change the picture.

  74. i remember a different, "real world" date... by feralboy · · Score: 1

    i was in 4th grade. principal comes on the intercom: "please note that in about 2 minutes it will be 1:23 and 45 seconds. because it's june 7th, 1989, at that time it will be 1:23:45, 6/7/89". kinda cool (even though they fudged it and it should have been 1 a.m., not 1 p.m. (1300 hours)), and neat that the told us about a significant "nerd" event.

  75. Program to assist your celebration by Nickoty · · Score: 1

    int main()
    {
    int p;

    while (1) {
    usleep(100 * 1000);
    if (p != time(0))
    printf("tid: %d\n",time(0));
    p=time(0);
    }

    return 0;
    }


    --


    -- Cure for Cancer instead of SETI! (only w32 yet - mail and beg)
  76. 2L8 in 2038 by DanEsparza · · Score: 1
    My $.02

    Any bets on which media company picks up on this first? (I'm guessing CNN -- but then again, I suppose they might actually have to understand the problem first.

  77. I Once 69'ed a Ximian by The+Critisizer · · Score: 1

    Really. It was quite fulfilling.

  78. not worth reading by Sir+Spank-o-tron · · Score: 1

    this is just not important

    --
    -- Spankmeister General
  79. Obvious 64-bit solution duh by AntiBasic · · Score: 2
    As with all Unix and Unix-like operating systems, time and dates represented internally as the number of seconds since the UNIX Epoch, which was the 1st of January 1970 UTC.

    32-bit systems can only store a maximum of 2^31 non-negative seconds (2,147,483,648 seconds or about 68 years). Which means that 32-bit UNIX systems won't be able to process time beyond 19 Jan 2038 at 3:14:07 AM UTC.

    One of the common solutions will be to switch to 64-bit architecture systems that can store a maximium of 2^63 non-negative seconds (9,223,372,036,854,775,808 [9.2 Quintillion] seconds or about 292.27 Billion years), which would be sufficient for quite a long time!

    1. Re:Obvious 64-bit solution duh by Speare · · Score: 2

      As has been stated elsewhere, Java uses 64bit time on the same epoch, but counts milliseconds instead of seconds. Easy conversion, and we can only measure 292.27 million years.

      --
      [ .sig file not found ]
  80. Another cool date by bcilfone · · Score: 1

    I haven't seen anyone mention the other cool date this year: October 2, 2001.

    In other words: 2001-10-02

    Notice it is palindromic. The last palindromic date would have been 1380-08-31, quite some time ago.

    Maybe on this date, computers will get confused as to which direction they were going and start running backwards.

    1. Re:Another cool date by TheABomb · · Score: 1

      Actually, that could also have been 10 Februrary, 10-02-2001 (using dd-mm-yyyy).

      And, if you use the format dd-m-yyyy, here's nine in C.XX:
      1 September 1910: 01-9-1910
      2 September 1920: 02-9-1920
      3 September 1930: 03-9-1930
      4 September 1940: 04-9-1940
      5 September 1950: 05-9-1950
      6 September 1960: 06-9-1960
      7 September 1970: 07-9-1970
      8 September 1980: 08-9-1980
      9 September 1990: 09-9-1990

      (of course, we're ignoring the dashes)

      --
      MSIE: The world's most standards-complaint web browser.
  81. Can't wait... by mindriot · · Score: 1

    Gosh, I really can't wait to see all the trouble and panic in 5,391,559,471,918,239,497,011,222,876,596, when the 128-bit signed Unix timestamp fails... OK, maybe the 256-bit timestamp failure will be much more interesting, but honestly, I'm not gonna wait that long.

  82. Another symbolic number by stud9920 · · Score: 1

    If you go check the html code on slashdot pages, you will see they load a "picture" named "pc.gif" (pagecount ?) with as parameter a number, being now approximately 987 000 000. Last time I checked a couple of months ago, it was 980 000 000. IIRC the /. FAQ said they served 1e6 pages a month. This is the same order of magnitude so pc.gif might really be the page count.

    This means in some months now, slashdot will have served 1 billion pages. Hats off, cmdrTaco and cowboyNeal. Maybe we could start another contest to see when it happens.

  83. STOP, do not tell your friends about this issue by Spackler · · Score: 3

    I can't wait for the MSNBC story about this one.

    Redmond WA.
    Today Bill Gates announced that all *nix systems will halt with the September 9th coming of the S1B bug. MSNBC recommends that all *nix users switch to Windows XP before it is too late. Steve Balmer was reported to say how amazed he was that *nix could be so short sighted. XP was designed to be S1B compliant right from the start (after installing SP8 due sometime in September). All you Windows users will be kept safe from this, and should not consider going to any rogue operating systems at this time.

  84. Windows NT already uses a kick-ass time format by Mr+44 · · Score: 1

    Ummm, all the linux geeks here must not be familiar with NT's (and thus windows 2000, XP, etc) internal representation of time. It's stored (in a quadword) as number of 100 nano-second intervals since 1600 (since its usefull to have a single format which can express events which happened in the past - you can't write an app which stores birthdates in a UNIX-time compatible format).

    1. Re:Windows NT already uses a kick-ass time format by falzer · · Score: 1

      Since 2^31 - 1 seconds after the epoch is in the year 2038, what about negative values of "seconds since the epoch"?

      Mon Jan 18 19:14:07 PST 2038
      wraps around to
      Fri Dec 13 12:45:52 PST 1901.

      Storing the birthdays of most living people works, at least on my system. :)

  85. That link is fascinating reading by the_quark · · Score: 2

    If you haven't checked out the Critical Dates link, it's fascinating (if somewhat repetitve) reading. Just think! Someone actually figured out that, on Tuesday, January 1, 29602, NTFS fails! I'm thinking, if you're stilling using NTFS in 27,000 years, you're probably gonna get what's coming to you.

    1. Re:That link is fascinating reading by realdpk · · Score: 1

      ITYM "NTFS fails for the last time" HTH

    2. Re:That link is fascinating reading by alexhmit01 · · Score: 2

      Umm, NTFS4 and NTFS5 fail. The version of NTFS in Win3.51 I believe fails in 2080. Or perhaps it's old Windows code that dies then. Something kills NT3.1-3.51 in 2080, and IIRC, it also kills Win3.11...

      Alex

  86. Re:unreal by Nickoty · · Score: 1

    while I admittedly didn't initialize p (not that it really matters), I did make sure you couldn't miss this important moment with almost a whole second! :)
    and don't forget to ntpdate some servers you _REALLY_ trust! :))

    --


    -- Cure for Cancer instead of SETI! (only w32 yet - mail and beg)
  87. Descending ? by mybecq · · Score: 1

    I must have got off in the wrong universe -- my Unix Timestamp seems to be ascending...

  88. You need to log off by partingshot · · Score: 1

    This shouldn't be that exciting.
    Take up a hobby.

    --
    Anonymous posts are filtered.
  89. Re:Ok, maybe I'm looking too far into the future, by MochaMan · · Score: 1

    at least with Classic

    MacOS X too; it's BSD after all.

    From /usr/include/time.h:

    typedef _BSD_TIME_T_ time_t;

    And from /usr/include/ppc/ansi.h:

    #define _BSD_TIME_T_ long /* time() */

    A long on MacOS X is 32 bits.

  90. Not a mnemonic, but a slogan... by SuperKendall · · Score: 2

    Meet your fate in '38!

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  91. Re:this news story by threephaseboy · · Score: 1

    are you sure its not YOU that broke it?

    --
    .
  92. Unless... by SuperKendall · · Score: 1

    That is, unless you actually have to deal with locales outside the US...

    As for me, I've gotten pretty used to it. It's pretty flexible once you understand how it works. I'm not sure what you'd find lacking in at the moment as far as time manipulation, the Gregorian Calendar stuff is pretty good...

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:Unless... by grue23 · · Score: 1

      my one bitch about GregorianCalendar is that it is not serialized. timestamps are a hugely common thing to transmit over a network, and the only non-depricated class that is designed to handle them can't be transmitted remotely without tweaking. bah.

    2. Re:Unless... by SuperKendall · · Score: 1

      ???

      GregorianCalendar (and Calendar) does implement Serializable... but why would you serialize one? Both Date (a timestamp) and Locale are serializable, I'm not sure why you would want to serialize a Calendar.

      --
      "There is more worth loving than we have strength to love." - Brian Jay Stanley
    3. Re:Unless... by kol-chaim · · Score: 1

      Every time I java.text.DateFormat.getDateTimeInstance().format( Calendar.getInstance().getTime()) I get a little nostalgic for localtime()

    4. Re:Unless... by SuperKendall · · Score: 2

      Not exactly a fair comparison since what you used above produces output like:

      Apr 20, 2001 12:57:09 AM

      Whereas localtime() gives you back a struct! The eqivilent is more like new GregorianCalendar() which gives you a handy calendar for the current locale and the current time (more than you'd get from a struct tm actually!) from which you could extract month/day/year/etc. fields.

      Now, as for outputting that struct in C the same as the Java code you gave, I won't go into that. I will show you two ways to shorten the Java though:

      1) new Date().toString() produces:

      Fri Apr 20 00:57:09 PDT 2001

      (not localized)

      2) If you need the output to be correct for your locale, you can shorten what you had a little:

      DateFormat.getDateTimeInstance().format(new Date()) )

      Which doesn't look so bad, considering all the benefit you get from it!

      The summary - use new Date() instead of Calendar.getInstance().getTime()!!

      --
      "There is more worth loving than we have strength to love." - Brian Jay Stanley
    5. Re:Unless... by grue23 · · Score: 1
      hmm. gregoriancalendar does not implement serializable but its parent class calendar does. odd that all the fields in gregoriancalendars kept nulling out when i was transmitting them via RMI, maybe i should have just been casting them as a calendar.

      i don't use date becase it is depricated, i wish it wasn't because it's straightforward.

  93. FALSE! by moogla · · Score: 1

    bash-2.03$ L=999999999; R=1000000000; if [ $L -lt $R ]; then echo true; else echo false; fi true bash-2.03$ This is the behavior of bash 2.03 on Ultrix and bash 2.04 on Linux/x86

    --
    Black holes are where the Matrix raised SIGFPE
  94. False! (sorry, posting again because of bad tags) by moogla · · Score: 1

    bash-2.03$ L=999999999; R=1000000000; if [ $L -lt $R ]; then echo true; else echo false; fi
    true
    bash-2.03$

    This is the behavior of bash 2.03 on Ultrix and bash 2.04 on Linux/x86

    --
    Black holes are where the Matrix raised SIGFPE
  95. UTC! by NoMercy · · Score: 1

    Do the math correctly and don't put the UTC there next time. (for any simpltens there who dont understand which time zone it should be it should be your local timezone since the system clock is set to your local time thus the diference is already taken into account)

    1. Re:UTC! by peter · · Score: 1

      Unix time is measured in UTC. Notice that date +%s gives the same output as date -u +%s. The man page says that this GNU extension gives the seconds since 1970, UTC.

      Most Unix timekeeping is done in UTC, and only ever converted to local for showing to users. The system time should always be set to UTC, and /etc/localtime should have [a symlink to] the timezone info for localtime(3) to use.
      #define X(x,y) x##y

      --
      #define X(x,y) x##y
      Peter Cordes ; e-mail: X(peter@cordes , .ca)
  96. Y10K bug by SuperKendall · · Score: 1

    The real problem will occur when we reach the year 10,000AD and all those date fields short-sightedly set to validate for four digit years fail.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  97. Computer date problems link??? by 3seas · · Score: 1

    Someone really should put up a sight for Computer date problems and even have those companies producing such date problems to have to report then to the site for listing. This way anyone can look it up on the web, perhaps thru a search engine looking for "Computer date problems log" or such. Even if the problem is in the past or far into the future.
    3 S.E.A.S - Virtual Interaction Configuration (VIC) - VISION OF VISIONS!

  98. interesting.... by hyperstation · · Score: 1
    the critical dates link is kinda neat, take a look at how occasionally dates and weeks were just "removed" from the calendar, even in fairly recent times....i like the last entry especially :)

    this also reminds me of a story several months ago about a new proposal for a calendar, with 10 day weeks, etc...

    do we really need a new system of recording dates? i know this would pretty hard to sell to the public

    --

  99. Obsessing! by piecewise · · Score: 1

    And computer users complain us Mac users "stupidly" obsess over the design of our computers and interface. Hey, you've got a lead article about when the system clocks make cool numbers. Dorks! :-)

    Seriously though, I guess we all obsess over certain things. Let Mac users obsess over design.. Unix users obsess over the technicals and engine under the hood.. and let the rest design programs.

    Viola! OS X! At least it's getting there..

    Gosh I love Slashdot. hehe

    --
    The next comment I write will be ready soon, but subscribers can beat the rush and see it early!
  100. CAN IT BE?! by amirboy2 · · Score: 1
    29602-01-01 Tue - Microsoft Windows NT file system (NTFS) fails.

    GOD NO!!! I hope Linux 42311.32.12pre9's filesystem, RazorrFS doesn't have this problem.

    --

    I like meat helmets.
  101. Re:unfortunately by FrostedChaos · · Score: 1
    First of all, in a nuclear war, how many nuclear bombs you have is probably the most important thing.

    Secondly, tactics and coordination are important, as is armament. Think of Russia in WWI. Lots of people, poorly armed and trained, led to defeat.

    Thirdly, even if they have lots of people, how will China get them over the ocean? In WWII, the Americans were able to use Britain as a waypoint for their invasion. The chinese have no such option. They would have to bring people across the entire Pacific Ocean by the teaspoonful, so to speak. Meanwhile the U.S. navy and the air force would have a field day.

    Meanwhile we could probably cover every square mile of China with nuclear fallout. Of course, they would probably do the same to us, in spite of Bush's nuclear shield fantasies. But the point is, more people doesn't automatically translate into winning.

    --
    "Any connection between your reality and mine is purely coincidental." -Slashdot
  102. 1990s were a great time by AintTooProudToBeg · · Score: 1

    Some other fun ones:

    12:34.56 7/8/90
    98/7/6 5:43.21
    9/9/99

    ========

    For some reason, I got the "lameness" filter on this post for using so many caps. Since the only cap I used was a capital "s" on "Some", I will add this paragraph in the hopes that my post will go through. Wish me luck!

  103. So where's the party for All Nines Day? by B.D.Mills · · Score: 2

    I think this would be a cool idea for a party. The clock rolls over to 1G from 999999999 on the 9th day of the 9th month of the millenium. How cool's that? The 9/9/01 is a Sunday, so it's even kind enough to be on a weekend.

    So pack those beers, grab the munchies, set up a *n?x computer with a BIG display showing the countdown and invite all your appreciative geek friends over. Forget the end of the millenium; the stupids celebrated it a year too early anyway. This is the REAL once-in-a-lifetime event....

    --

    --

    The only thing necessary for the triumph of evil is for good men to do nothing. - Edmund Burke
  104. MacOS in 2040, OS X in 2038 by MochaMan · · Score: 1

    MacOS X should go along with the rest of the 32-bit Unices, while the standard MacOS goes at 6:28:15 am on February 6, 2040.

    Wait till the down with MacOS X crowd (ie. the ridiculous press) hears about that one.

    Apple's statement is here.

  105. Re:False! (sorry, posting again because of bad tag by edhall · · Score: 1

    You missed my point. Not everyone who writes scripts is aware of the difference between "<" and -lt. Does your sysadmin know the difference? I've met some who don't.

    -Ed
  106. This is such a geek article. by crashnbur · · Score: 1

    That's all I wanted to say. :-)

  107. Gah! Fix dumb mistake! by Flying+Headless+Goku · · Score: 1

    Good point. I moved the time() call into the loop test without thinking about it. But all it takes to fix it is to reverse the order:

    perl -e 'while(($time=time())<=987654321){print "$time\n";sleep(1)}'
    --

    --
  108. The meaning is obvious. by roystgnr · · Score: 2

    Hypothesis: God wants us to use 64 bit processors.

    Corollary: Every IA-64 delay makes it more likely that Intel executives will burn in hell.

  109. I Don't Drink Beer by The+Critisizer · · Score: 1

    I prefer to drink some of the swell and boffo stuff I bought from ThinkGeek like Cow's Piss 110% CaFFEiNe Drink.

  110. Re:False! (sorry, posting again because of bad tag by Kwantus · · Score: 1
    Is that bash, or test? that's be an external in sh.

    It may be optimistic to think every scriptwriter distinguishes the -lt and the left-angle-bracket (Slashdot chokes no matter how I try to include the character, yes I know how to in HTML, /. doesn't) semantics; for too many, if it works on the three test runs they make, it's correct. Look how many times the problem with 08 and 09 has to be explained in tclsh groups :p

    I wonder, too, about sort... did everytone that wrote a thing that sorted on the timestamp, use the -n?

  111. Apple's NSDate object by jcr · · Score: 1

    Apple (soon to be the volume leader in UNIX desktops) did a pretty good job of implementing dates in the cocoa framework.

    The datum (NSTimeInterval) is a double precision float, with the epoch being the turn of the century 01/01/2000, and even though that give an enormous dynamic range, whenever a date is serialized, it's written out in text.

    Of course, all the tools in /bin and /usr/bin still use the 32-bit time_t, but this can certainly get fixed over the next 36 years. NSDate is part of the code they've given away in Darwin.

    -jcr

    --
    The only title of honor that a tyrant can grant is "Enemy of the State."
    1. Re:Apple's NSDate object by Nitewing98 · · Score: 1

      Umm, first of all, Senator, let me state for the record, I am a mac user. That being said, are we to believe that Apple, whose Mac was designed from the beginning to survive the Y2K fiasco, has PURPOSELY introduced an OS to the Mac hardware that contains a DATE-RELATED BUG? Absurd. Ridiculous! True.

      --

      Nitewing '98

      Everything works...in theory.

  112. there is no mistake by DeadInSpace · · Score: 1

    Either you are referring to the rollover to 1,000,000,000, which is no problem (except perhaps for a few ill-written programs), just a number some people get excited about.

    The other case is that you're referring to the future overflow of the currently 32bits signed time counters, somewhere in 2038. This is no problem either, because the size (in bits) of the time counter is not specified, although it is currently 32 bits. In C for example (and this is quite a relevant example, since the most UNIX kernels/libs/programs are written in C), this is accomplished by using the type 'size_t' for time counters. In the standard header files, size_t is defined to be 32bits. If this is changed to 64bits, and all programs using time counters are recompiled, we are set to go for another approximately 280,000,000,000 years... at which point we'd have to switch to 128bits (if the human race still exists and unices are still used).

    ----

  113. this is cool? by Anonymous Coward · · Score: 1

    This, just like "Even day" (February 2, 2000), is utterly meaningless. Instead of writing this article, why didn't you just say, "Who cares?" What's more important about the UNIX timestamp is when it runs out of space for a long integer to store. THAT will be interesting. Y2K all over again.

  114. My favourite from Critical Time by wdavies · · Score: 1

    Will we still be using Oracle in 2.7 Millenia ?

    4712-12-31 Tue - Limit of Oracle?

    Weird thing is I have a horrible feeling it might still be around :)

    Winton

  115. Re:impressive by BorgDrone · · Score: 2

    So let me get this straight the mightiest country in the world The United States of America is lame?

    yes it is. all this talk about how much freedom you're supposed have when in fact it's not that free at all.
    things like softdrugs and prostitution are illegal, you'll probably say that it's not good for you to use softdrugs or not moral to go to a hooker, but at least I made that decision for myself instead of that the government made it for me.
    I have the freedom to choose and set my own standards, you don't.
    ---
  116. Re:impressive by BorgDrone · · Score: 2

    Probably Holland.

    yep

    Been there once, very interesting place. Friendly people and travelling is really easy due to the excellent mass transportation systems. I dunno why Amtrak and friends even bother anymore :(

    actually, they're working on making the trains run better according to schedule.
    nowadays you can even get a refund if a train is delayed too long :)
    ---
  117. Re:and you are geeker to reply to it by pacodelucia · · Score: 1

    that's also all what i wanted to say

  118. Re: The Quickly Descending Unix Timestamp by minimis · · Score: 1
    and then of course "roll over" to 1000000000 one second later
    Quit trolling us Teach, we all know the important roll over is from 1000000000 to 1000000001, one more second later.
  119. Re:impressive by starman97 · · Score: 1

    Lucky dog...
    I just got back from .NL yesterday and I allready miss it..

    Had the run the gauntlet of US fascist pigs at customs. and then back to the choking air of Houston.

    I miss the electric trams, the polite citizens, the multi-cultural visitors and the tolerant society of .NL ...

    --
    Starman97@Gmail.com (bring it on spammers)
  120. Why stay with 32 bits? by mcrbids · · Score: 2

    Why don't we move to a 64 bit timestamp?

    My primary occupation is to build ASP applications in PHP - and the 32 bit timestamp is a decided limiting factor.

    So we move to a 64-bit epoch - I don't see any particular problem doing so NOW... but in 37 years it just might be a REAL PROBLEM.

    Why isn't this done? Why don't the kernel developers for Linux just do this, using a slightly different system call? (xtime() instead of time() or whatever)

    A compatability function could SO EASILY be added now, and then software can be written that takes advantage of the extended API...

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.
  121. signed date? by Mr.+Sketch · · Score: 2

    The Java date subsystem was apparently designed by a short sighted individual. Who would use a signed number to represent the date? They could go twice as far into the future if they used it as an unsigned number. After all, time didn't exist before 1970 so it's perfectly okay to just represent it as an unsigned number.

    Sorry, but seeing bad programming practices like this just make be a little upset especially for a supposedly robust system such as Java.

  122. Happy 987654321!!!!!!!! by mcarbone · · Score: 1

    Wooooooooooooooooooh!

    987654321!

    WoooooooooooooooooH!

    --

    The only true currency in this bankrupt world is what we share with someone else when we're uncool. -Crowe
  123. Screenshot by TheABomb · · Score: 1
    --
    MSIE: The world's most standards-complaint web browser.
  124. What might happen? by K'tohg · · Score: 1

    I'm quite the bit curious, Has anyone actually attempted to see what the appocolypse might look like from a computers perspective?

    Perhaps when I have a play machine hanging around I'll `date -s 'Tue Jan 19 03:14:00 GMT 2038'` to watch the rollover or possably Jan 20 2038 to see what breaks after that date?

    It would be interesting to experiment such a disaster. Who knows maybe the rollover of one machine will causes a catalistic affect over a net (That would be cool eh? An Epoch worm? Or virus that does nothing but set your time past 2038?)

    Possably a site archiving success or fail of such programs or systems would be an intersting addition to the ever-growing-yet-needlessly-viewed bookmark folder.


    "Remember, who is the boss of you!" ... "Me! I am the boss of you!"
    --
    > SELECT * FROM brain_cells WHERE synaptic_rate > 0
    0 row returned
  125. Re:unfortunately by Arcanix · · Score: 1

    Imagine the supply issues with tens of miillions of troops!

    Yeah, and only 1.2 billion people providing the production base. I suppose the US should be afraid of Canada's smaller army because of the "supply issues" of supporting a large army.

  126. Re:disagreement by Mike+Schiraldi · · Score: 2
    emacs has some weak AI algos installed, such as the famous Eliza doctor program and a collection of Zippy the Pinhead quotes. Someone created a command, M-x psychoanalyze-pinhead which connects one to the other so you can watch the ensuing conversation.

    --

  127. The final and Ultimate Date by Bushwacker · · Score: 1

    According to the article, the highest possible date that can be counted to is 2**1E80. According to my (possibly flawed) calculations on my trusty HP VPN Scientific calculator here, that 'Final Date' will occur approximately sometime in the year 15,616. Supposedly after this, is the total number of known particles in the universe, hence no dates beyond this number can exist. Interesting!.... Very very interesting!
    ------------------------------------ -----

    --
    -----------------------------------------
    Perversely greped and groped by PowerPenguin
  128. Re:impressive by paled · · Score: 1

    and the yound blondes in pigtails ...

    --
    .
  129. What's 987654321/8? by bradipo · · Score: 1

    123456790 :-)

  130. I wrote a program with an S1B bug by Paul+Crowley · · Score: 2

    I wrote a program which used the current time *2 as a 10-byte IV. When the time rolls over, that program will fail. Why was I doing such a dirty trick? I was trying to squeeze every last byte out of an RC4-based cryptosystem written in Perl.

    The bug was spotted by co-author Jeff Allen, who suggested this fix: *invert* the time with "~". That should keep going until the 32-bit clock runs out in 2038.

    #!/usr/bin/perl -0777i_MUNITION,see_http://ciphersaber.gurus.com
    (pop)?read STDIN,$p,10:print$p= ~time;sub S{@s[$x,$y]=@s[$y,$x]}sub
    Q{$s[($_[0]+=$_[1])%=@s]}@k=unpack'C*',(pop).$p; for$x(@t=@s=0..255){S
    Q$y,$k[$x%@k]+Q$x}$x=$y=0;print map{chr($_^Q S Q$y,Q$x,1)}unpack'C*',<>

    I've had to introduce a space in ";for" to get around Slashdot's random space adding system (bah!) - the minimal version is on my Web pages. Incidentally, the ~ fix didn't save a character, because we still had to leave a space between the = and the ~ since =~ is a distinct Perl token...

    --

  131. Time Machine! by Jebediah21 · · Score: 1

    In the future we _will_ be able to go back in time! My Linux Box says so! Check it out:

    [jebediah@Tabernacle jebediah]$ perl -MPOSIX -le 'print ctime(999999999)'
    Sat Sep 8 18:46:39 2001

    [jebediah@Tabernacle jebediah]$ perl -MPOSIX -le 'print ctime(1000000000)'
    Sat Sep 8 18:46:40 2001

    [jebediah@Tabernacle jebediah]$ perl -MPOSIX -le 'print ctime(2000000000)'
    Tue May 17 20:33:20 2033

    [jebediah@Tabernacle jebediah]$ perl -MPOSIX -le 'print ctime(3000000000)'
    Fri Dec 13 12:45:52 1901

    I urge anybody who wants to go back to a simpler time to start using Linux and to grasp there compuret tightly when the sacred time comes around!

    --

    Everytime you look at porn a devil gets their horns.
  132. 2012 by meadowsp · · Score: 1

    It was actually Dec 23rd 2012, the end of the last of the 5 ages of the Maya. Should be interesting to see, apparently the end of each of the last ages correspond with a cycle of maximum sunspot activity. The story being that this will flip the magnetic poles of the earth and cause all sorts of problems.

    1. Re:2012 by GypC · · Score: 2

      Some people theorize that rather than the magnetic polarity of the poles switching, the weight of the icecaps on the poles will cause (and has caused before) the crust of the earth to actually slide over the molten center, as if it were an orange with a loose peel. This would, of course be a highly catastrophic event. Suddenly, the poles are at the equator, the oceans slosh out of their basins, scouring the continents...

      Check out "Footprints of the Gods" by Graham Hancock for more details about this and other far-out but suprisingly well researched and supported theories.

    2. Re:2012 by meadowsp · · Score: 1

      Interesting, I'd never heard that theory before but it does seem to fit in, I was going from my memory of reading The Mayan Prophecies by Gilbert and Cotterell. I'll have to check out that other book. It's really mind-bending stuff though, all of this lost knowledge.

  133. Egads! by neo · · Score: 1

    Yes, I guess it would.

  134. A good day... by CRiS_W · · Score: 1

    2001-09-09? Hey, that's my 1-year wedding anniversary!

  135. Re:Ok, maybe I'm looking too far into the future, by Muad'Dave · · Score: 1


    Silly boy, you're assuming that the "Windows and Mac communities" will be anything more that anthropological museum exhibits in the '30s (right next to australopithicus using a twirling stick to start a fire).

    --
    Tiller's Rule: Never use a word in written form that you've only heard and never read. You will end up looking foolish.
  136. Less than 3 more years till we're all set by gregor_b_dramkin · · Score: 1

    At least the lowest 30 bits.
    :)

    (time_t)(0x3fffffff) = 2004/01/10 13:37:03 GMT

    At which point we will be halfway to the 2038 bug.

    --
    You can never equivocate too much.
  137. You can if you try! by rasilon · · Score: 1

    /* You can declare a variable with the same name
    * as a type if you want. */
    #include <time.h>
    #include <stdio.h>

    int main(void){
    time_t time_t=987654321;
    printf("%s\n",ctime(&time_t));
    return 0;
    }

  138. bash, test, sh by moogla · · Score: 1

    Good point. I keep assuming that everyone uses bash instead of sh. It's creeping in though, Sun's Solaris has been using it as a shell replacement in 2.8 in some configurations.

    I tried using test, and the test worked on linux (as expected) and, thankfully, also in Ultrix. So maybe it's not that bad...

    --
    Black holes are where the Matrix raised SIGFPE
  139. the unix timestamp and JESUS coincidence by mozkill · · Score: 1

    hey... i was just thinking... i am not religious at all, so I am going on heresay...

    1. isn't 999999999 equivilant to about 30 years, which is how old Jesus was when he was crucified?
    2. i find it strange that 000000001 starts at damn near Christmas time in 1971 and 999999999 ends at damn near Easter time 30 years later...
    3. does this mean that GOD uses the unix date/time system for all of his scheduling??

    --

    -- Betting on the survival of the media industry is a serious risk. I advise investing elsewhere.
  140. unix2038.com by vertel · · Score: 1
    As you can tell, there is a website that's devoted to this important date in the future of 32bit Unicies. http://www.unix2038.com/

    Whee!