Comment on xkcd #2867: DateTime
icydefiance@lemm.ee 10 months agoWhen a leap second happens, unix time jumps back by a second. See the section about leap seconds here: en.m.wikipedia.org/wiki/Unix_time
Comment on xkcd #2867: DateTime
icydefiance@lemm.ee 10 months agoWhen a leap second happens, unix time jumps back by a second. See the section about leap seconds here: en.m.wikipedia.org/wiki/Unix_time
nybble41@programming.dev 10 months ago
It might be more accurate to say that Unix time is the number of days since Jan 1st, 1970, scaled by 24×60×60. Though it gets a bit odd around the actual leap second since they aren’t spread over the whole day. (In some ways that would be a more reasonable way to handle it; rather than repeating a second at midnight, just make all the seconds slightly longer that day.)