News for hackers. Stuff that matters.
Re:Temporal: The 9-Year Journey to Fix Time in JavaScript by koakuma-chan on Thursday March 12, 2026 @10:35AM (#47351125)
I am saying that you shouldn't use day as a unit of time. You should use second, minute, hour, etc, because these have a constant duration. sleep(86400) should reliably make your thread sleep for at least 24 hours.
Re:Temporal: The 9-Year Journey to Fix Time in JavaScript by mklepaczewski on Thursday March 12, 2026 @12:11PM (#47353002)
It depends on the context and the system you’re working with. In some systems, an hour may last 3599, 3600 or 3601 seconds (due to the leap second), a minute may be 59,60 or 61 seconds. Even a second is not always a „true” second.

There’s no single time unit that works for all situations.