Consider coding these two solutions (for n "patients"), in one you simply keep a timestamp of each and check against current time. In the other, you have many timers / stopwatches in parallel. The simplicity of simply recording the time and checking it against current time absolutely extends to the physical world.
It is also fundamentally different in nature, in that leap seconds never create duplicate times in the time sequence. Leap seconds are changes to the sequence of the underlying elapsed time sequence; DST changes are not, but only change the representation and use of time values.
Absolutely agree and that was my point in the comment you replied to.
If you want to measure elapsed time you should not involve absolute time measures because then you will not need to think about leap seconds or DST changes.
start := time.Now()
// Code to measure
duration := time.Since(start)
See the docs for a good write-up: https://pkg.go.dev/time#hdr-Monotonic_ClocksIn rust you use https://doc.rust-lang.org/std/time/struct.Instant.html
Some kind of punch clock system for every action would make that even more tedious, I imagine.
1. Patient care is very bespoke, with all manner of combinations for treatments, including contra-indicated medications. It's similar to why it's hard to automate air traffic control (lot's of human factors at play that require human decision making).
1. https://www.cbc.ca/news/business/air-canada-investigation-nt...
> Federal officials subsequently issued new rules for nighttime landings and control-tower staffing. Now, when an adjacent runway is shut down at night, air traffic controllers will no longer let pilots make so-called visual approaches to land. Instead, they must use instrument landing systems or satellite-based systems to line up for the correct runway.
Not sure this supports that "unambiguous language" is the problem. To me it sounds like the problem is "humans being expected to perfectly perform routine tasks" - and the solution is to move as much of the task away from the humans as possible. I imagine there are parallels in the medical system (but am not expert).
Similarly it's not obvious whether your phone keeps an eye on this for you, if you're not a techie type. And if you are, how do you know what your elapsed time stopwatch does under the hood?
One of my cars gets time from the radio, the other one doesn't, so around this time of year they show different times.