News for hackers. Stuff that matters.
Re:Insane complexity of calendrically correct date and time ... by aidenn0 on Thursday September 20, 2018 @05:30PM (#18035634)
No, because unix times can repeat in the case of leap-seconds (this is necessary to be able to represent future times correctly).
Re:Insane complexity of calendrically correct date and time ... by teddyh on Thursday September 20, 2018 @06:28PM (#18035940)
You can avoid repetitions by using clock_gettime(CLOCK_MONOTONIC, …).
Re:Insane complexity of calendrically correct date and time ... by murderfs on Friday September 21, 2018 @12:31AM (#18037167)
But that's no longer Unix time, it's an arbitrary value that's usually something along the lines of "number of seconds that the CPU has been awake since boot".