I just went through Falsehood Programmer Beliefes about Time + number 2. Most of them fall into three groups:
But there are a couple I cannot find the answer to. Can somebody here help and tell me why the following statements are false?
And from the crouwd-version:
My guess is that there is one (or at least only a few) categories/facts about datetime / timezone I completely forgot. What is it?
The question appears pretty broad as written, but I can address the first two and a few of the others.
- The system clock will never be set to a time that is in the distant past or the far future.
This is sometimes done by developers for testing purposes. Someone writing an application might want to make sure that their app will still work past some Y2K-like barrier in the near future. While testing this, they shouldn't need to worry that their mouse driver will go kablooie because it wasn't configured to work well when January 1, 5010 comes a day after August 28, 2018, and it doesn't know what to do when it realizes that it doesn't have any log entries for the entirety of 5009.
- Ok, but the duration of one minute on the system clock will be pretty close to the duration of one minute on most other clocks.
A computer system might be on board a spaceship near a black hole and subject to its time dilation. If it needs to maintain a connection with a computer some distance away (e.g. via some future interstellar packet radio), it shouldn't barf out, give garbled output, or bluescreen because the system clocks get out of sync by a few hours or even more.
This can also be caused by a damaged or defective internal clock. Timing crystals, EPROM, and other components tend to be pretty robust and reliable, but they are manufactured goods that do have some tolerances and do fail on rare occasions.
Also, from your second list:
- Years have 365 or 366 days.
In some countries, including the UK, the year 1752 had 354 days due to the conversion from the Julian to the Gregorian calendar.
- The day before Saturday is always Friday
In 2011, Samoa switched time zones, skipping directly from Thursday to Saturday.
Time passes at the same speed on top of a mountain and at the bottom of a valley.
The software will never run on a space ship that is orbiting a black hole.
These are both references to the aforementioned time dilation.
There are really two principles here. One is relativity/time dilation, and the other is the fact that the calendar is NOT a simple static equation! It changes with the times due to political, social, and astronomical realities! Many of the other items also relate to the fact that the calendar may change in the future. It has changed before, so why wouldn't it ever change again?
There is also the matter of proposed timekeeping systems on other planets, such as Mars. Maybe we don't have computers running with them now, but maybe the software you are writing now will be installed on Martian-bound systems configured for Olympus Mons Time (hey, some people are still using Windows XP in 2018, what do you expect?).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With