News for hackers. Stuff that matters.
Re:OpenBSD removes support for non-UTF8 locales by LeoPanthera on Friday August 14, 2015 @09:44PM (#10063988)
No thank you. Just store times on computers as $epoch+$offset and then convert to UTC when displayed to the user.

That way, only the display routine has to care about leap seconds and it won't break anything.

Re:OpenBSD removes support for non-UTF8 locales by repsilat on Saturday August 15, 2015 @04:46AM (#10064755)
If you mean "UNIX time", you'll be disappointed -- UNIX time is not the number of seconds since the epoch, it is also leap-second adjusted. It stops when a leap second happens to make sure there are exactly 86400 UNIX seconds between every midnight (so you can do divmod calculations on timestamps.)

Maybe you were suggesting an improvement to UNIX time, though, in which case I think the grandparent and I would get behind your proposal.

Re:OpenBSD removes support for non-UTF8 locales by LeoPanthera on Saturday August 15, 2015 @03:46PM (#10066571)
Yeah I know about unix time and that isn't what I meant. It never made sense to me. Just have a monotonic timer and an epoch, and worry about UTC and leap seconds in the view.