News for hackers. Stuff that matters.
Re:Metric Time by lesuorac on Thursday October 12, 2023 @09:50AM (#37857096)
Is that how you program things?

I recommend using as little as date/day mechanics as you can get away with. Instead using a monotonic durations as much as you can [1].

If you continue to program with date/day mechanics you'll run into plenty of issues when users cross timezones or just set the time on their phone to a different one.

[1]: https://en.wikipedia.org/wiki/Unix_time

Re:Metric Time by worthless-trash on Thursday October 12, 2023 @10:52AM (#37858043)
My favorite things is when you connect to cell towers that have DST in one state, and not in another, the cell phone getting the time/date from "the network".
Re:Metric Time by kybernetikos on Thursday October 12, 2023 @11:46AM (#37858810)
Yes, getting rid of the various savings time is important too.

All the people pointing out the (genuine) problems with decimal time seem to be weirdly tolerant of the problems with our current system, which has much worse problems.

If you imagine the reverse situation, where society uses a decimal time, and some people are arguing we should switch to this system because despite all the things it makes worse and harder, it divides better and the numbers map somewhat (although imperfectly) to the actual time-of-day in various locales and (even less perfectly) to the kinds of things people might be doing at that time, everyone would think they were crazy.

Re:Metric Time by xattt on Thursday October 12, 2023 @06:38PM (#37864056)
[delayed]