Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Unix Technology

Raise a Glass — Time(2) Turns 40 Tonight 114

ddt writes "Raise your glasses of champagne in a toast at midnight. The time(2) system call turns 40 tonight, and is now officially 'over the hill.' It's been dutifully keeping track of time for clueful operating systems since January 1, 1970." And speaking of time, if you don't have a *nix system handy, or just want a second opinion, an anonymous reader points out this handy way to check just how far it is after local midnight in Unix time. Updated 10:03 GMT by timothy: The Unix-time-in-a-browser link has been replaced by a Rick Astley video; you have been warned.
This discussion has been archived. No new comments can be posted.

Raise a Glass — Time(2) Turns 40 Tonight

Comments Filter:
  • by nurhussein ( 864532 ) on Thursday December 31, 2009 @11:51PM (#30612230) Homepage
    Rickrolling is so 2009.
  • Windows (Score:2, Funny)

    by Tablizer ( 95088 ) on Thursday December 31, 2009 @11:56PM (#30612248) Journal

    The Windows clock starts the second Gates stiffed IBM out of the DOS market.

  • by schon ( 31600 ) on Thursday December 31, 2009 @11:59PM (#30612270)

    Why didn't we restart it at 2000 amidst the Y2K mess?

    You have a promising career in middle management ahead of you!

  • by Telecommando ( 513768 ) on Friday January 01, 2010 @12:24AM (#30612358)

    My clock says today is Setting Orange, Day 73 of the Aftermath in the Year of Our Lady of Discord 3175.

  • by jamesh ( 87723 ) on Friday January 01, 2010 @01:12AM (#30612500)

    You should install the RickBlockPlus [functionalperfection.com] browser addon to prevent this sort of thing happening.

  • by Sporkinum ( 655143 ) on Friday January 01, 2010 @01:17AM (#30612516)

    Beware what? Seeing in the new year with Rick Astley seems like a pretty good thing to me. Then again, I am easily amused!

  • by Anonymous Coward on Friday January 01, 2010 @02:42AM (#30612750)

    It makes sense when the time hits midnight.

  • by Anonymous Coward on Friday January 01, 2010 @10:34AM (#30613964)

    Oh, you people. It's just an alternative to the usual UNIX epoch [wikipedia.org].

    time_rickroll(2) Unix Programmer's Manual time_rickroll(2)

    NAME
              time_rickroll - get time since 16 November, 1987 [wikipedia.org].

    SYNOPSIS
              #include

              time_t time_rickroll(time_t *t);

    DESCRIPTION
              time_rickroll returns the time since the Astley Epoch (00:00:00 UTC, November 26, 1987 [wikipedia.org]) measured in seconds.

              If t is non-NULL, the returned value is also stored in the memory pointed to by t.

    RETURN VALUE
              On success, the value of time in seconds since the start of the Astley Epoch is returned. On error,
              ((time_t)-1) is returned, and errno is set appropriately.

    ERRORS
              EFAULT t points outside your accessible address space.

    NOTES
              See time(2) for limitations with regards to leap seconds and other matters of consistency. In addition, the exact timing
              of release of "Never Gonna Give You Up" on November 26, 1987 is assumed to be 00:00:00 UTC on that date, even though
              it is unlikely that a midnight release party was held. Some purists also believe that the correct Astley Epoch begins
              sometime in May 2007 [wikipedia.org], however the possibility exists of
              earlier examples of rickrolling, but none can predate November 26, 1987, the Astley Epoch chosen here.

    POTENTIAL SIDE EFFECTS
              There have been scattered reports of a bug that affects video and sound output when this function is called.

    SEE ALSO
              date(1), time(2), time_duckroll(2)

Math is like love -- a simple idea but it can get complicated. -- R. Drabek

Working...