R
Raymond DeCampo
Stefan said:Something like this is done here for the closing-time of
stores. So, since the government already enforces
opening-times and closing-times of stores, they could change
these and they could change to times for schools, universities
and their own agencies. Some other institutions then might
follow.
By "here", I assume you mean Germany, based on what you wrote below.
There are no such laws in the US with the exception of some states that
have "blue laws" that only apply on Sundays.
Your suggestion sounds like a nightmare where you never know what is
going to be available when.
It is only that, given two time stamps of the legal time for
a location in Germany, like
2005-07-10T21:38:10 and
1960-07-10T21:38:13
it would be a typical programming task to write a routine
that can calculate the difference between them in seconds.
And this would be much more easy, without the need to have
to find out all details of regulations for DST in Germany.
After WWII, in Germany, there were several different zones
controlled by different countries and some details for the DST
differed between these zones. In one zone, there was a special
DST with two hours added for the mid of summer. Then there are
reports that there were years with DST even in winter. And so
on.
All these special regulations make it very difficult to
write such a routine.
This is why any environment worth its salt has these routines available
in a standard library. Asking people to forgo a substantial reduction
in energy use for the (supposed) convenience of computer programmers is
ridiculous. Remember that computers are not an end unto themselves,
they are tools here to serve.
Ray