News for hackers. Stuff that matters.
Re:Falsehoods Programmers believe about Time by JoshTriplett on Monday June 18, 2012 @05:05PM (#4128540)
From which many modern reckonings of time descend, including the one used by all modern computer systems.
Re:Falsehoods Programmers believe about Time by brazzy on Monday June 18, 2012 @05:19PM (#4128613)
Actually, almost no country outside the British Empire (and not even Scotland inside it) implemented the Gregorian reform at the same time. Britain was pretty late in doing so, too.

As for "all modern computer systems", Unix time is completely ignorant about anything except seconds.

Re:Falsehoods Programmers believe about Time by masklinn on Tuesday June 19, 2012 @01:53AM (#4130447)
> Unix time is completely ignorant about anything except seconds

That's not correct, actually: UNIX time tracks UTC instead of TAI meaning it "corrects" for leap seconds. As a result, UNIX time is not "the number of seconds since epoch" but "86400 * (number of whole days since epoch) + (number of seconds since midnight)", and UNIX time will go forwards (never so far) and backwards on leap seconds (a second will repeat in most implementations as the day goes from 23:59:60 to 00:00:00, as they have the same timestamp).

Re:Falsehoods Programmers believe about Time by fusiongyro on Monday June 18, 2012 @06:02PM (#4128845)
> Unix time is completely ignorant about anything except seconds.

In hindsight, it seems like a brilliant decision.

Re:Falsehoods Programmers believe about Time by Arelius on Friday June 29, 2012 @07:08PM (#4179621)
But then we had to go and make it care about leap seconds...
Re:Falsehoods Programmers believe about Time by philwelch on Monday June 18, 2012 @06:10PM (#4128882)
Except it doesn't account for leap seconds.
Re:Falsehoods Programmers believe about Time by rictic on Monday June 18, 2012 @07:13PM (#4129074)
Is that true? Isn't that the responsibility of the whatever component that translates the number of seconds since Jan 1 1970 into a calendar?
Re:Falsehoods Programmers believe about Time by thristian on Monday June 18, 2012 @07:59PM (#4129307)
POSIX requires that the Unix timestamp value be incremented by exactly 86400 per day, regardless of how many seconds that day actually contained.

https://en.wikipedia.org/wiki/POSIX_time#Encoding_time_as_a_...

Re:Falsehoods Programmers believe about Time by rmc on Tuesday June 19, 2012 @04:46AM (#4130837)
Unix time is not the number of seconds since Jan 1st 1970.