Ken Schneider <suse-list@bout-tyme.net> writes:
And wait for the shysters that run our government (in the USA) change the dates for DST by adding three weeks in the spring and one in the fall. Won't that cause a lot of confusion for the programmers. And think about all of the legacy systems that will have to be updated/programs changed. And these are supposed to intelligent people.
glibc uses the timezone package which is actually a database that contains entries like the following to determine when to change the timezone (this is only part of the data): # Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S Rule US 1918 1919 - Mar lastSun 2:00 1:00 D Rule US 1918 1919 - Oct lastSun 2:00 0 S Rule US 1942 only - Feb 9 2:00 1:00 W # War Rule US 1945 only - Aug 14 23:00u 1:00 P # Peace Rule US 1945 only - Sep 30 2:00 0 S Rule US 1967 max - Oct lastSun 2:00 0 S Rule US 1967 1973 - Apr lastSun 2:00 1:00 D Rule US 1974 only - Jan 6 2:00 1:00 D Rule US 1975 only - Feb 23 2:00 1:00 D Rule US 1976 1986 - Apr lastSun 2:00 1:00 D Rule US 1987 max - Apr Sun>=1 2:00 1:00 D So, anything can be added here and then updated without recompiling glibc or other programs (no other program should use this data!), Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126