For example, lets say I have a store that opens from 8:00-17:00 every day, and it's currently 22:00. How long is it till it opens next?
And last year someone else's code failed on 30 December 2019, so I had a pretty good idea where to look.
Still need to fix a bug in code written only yesteryear because the 1st of July wasn't on a Monday this year, but I decided to snooze that test failure ... it'll work fine again in 9 years.
About your question it’s impossible to answer without further context. There may be DST tonight, or a leap second, or the enforcement of some strange treaty that will change the time zone..
like in your search results for let's say some M-F 8-5 business... it would say "Hours: 8:00-17:00, Closed right now, in 72% of the cases, the next opening time is tomorrow morning at 8"
http://www.creativedeletion.com/2015/03/19/persisting_future...
https://codeblog.jonskeet.uk/2010/12/01/the-joys-of-date-tim...
https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a...
Or look at the usual falsehood list:
https://gist.github.com/timvisee/fcda9bbdff88d45cc9061606b4b...
Some interesting ones:
A week (or a month) always begins and ends in the same year.
Months have either 28, 29, 30, or 31 days.
There is a leap year every year divisible by 4.
The day before Saturday is always Friday.
… which the proposal doesn't use. (It uses POSIX.)