Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site mirror.UUCP
Path: utzoo!linus!raybed2!rayssd!mirror!sources-request
From: sources-requ...@mirror.UUCP
Newsgroups: mod.sources
Subject: v06i070:  Updates to "settz" data files (settz.patch)
Message-ID: <158@mirror.UUCP>
Date: Tue, 22-Jul-86 12:40:11 EDT
Article-I.D.: mirror.158
Posted: Tue Jul 22 12:40:11 1986
Date-Received: Wed, 23-Jul-86 05:49:02 EDT
Sender: r...@mirror.UUCP
Lines: 167
Approved: r...@mirror.UUCP

Submitted by: seismo!elsie!ado
Mod.sources: Volume 6, Issue 70
Archive-name: settz.patch

[  Volume 4 #14 is "settz," a program that generates datafiles with
   detailed timezone information.  With the recent change in US law,
   this topic has been under renewed discussion, especially in
   net.unix-wizards and mod.std.unix.  If you missed the original
   settz posting, please contact your nearest mod.sources archive
   site.  --r$]

: To unbundle, sh this file
echo EXPLANATION 1>&2
cat >EXPLANATION <<'End of EXPLANATION'
On July 8, Ronald Reagan signed a bill changing the United States' Daylight
Saving Time law.

Starting in 1987, US Daylight Saving is to be observed from the *first* Sunday
in April until the last Sunday in October.  (Under recent law, it has been
observed from the *last* Sunday in April until the last Sunday in October.)

Here are updated versions of two data files that were part of the recently
posted time zone package.
--
Time is a Time Incorporated trademark.
--
	UUCP: ..decvax!seismo!elsie!ado   ARPA: elsie!...@seismo.ARPA
	DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.

End of EXPLANATION
echo northamerica 1>&2
cat >northamerica <<'End of northamerica'
# @(#)northamerica	2.2

# Bob Devine has written that ". . .your table is wrong for MostNA in 1974.
# The correct ending date is 10/27 not 11/24."  Yet on a 4.1bsd VAX/11-750
# system, compiling and executing the program
#
#	#include "time.h"
#
#	long l = 152592000;
#
#	main() {
#		struct tm *	tmp;
#
#		tmp = localtime(&l);
#		printf("%s", asctime(tmp));
#		printf("isdst: %d\n", tmp->tm_isdst);
#	}
#
# results in the output
#
#	Fri Nov  1 22:40:00 1974
#	isdst: 1
#
# For now we'll stay with 4.1bsd's version.
#
# Note also this from munnari!kre:
# "I recall also being told by someone once that Canada didn't have
# the DST variations in 74/75 that the US did, but I am not nearly
# sure enough of this to add anything."

# If Canada or Mexico decide not to follow the US change in DST that takes
# effect in 1987, additions had best be made below.

# Before the Uniform Time Act of 1966 took effect in 1967, observance of
# Daylight Saving Time in the US was by local option, except during wartime.

# Rule	NAME	FROM	TO	TYPE	IN	ON	AT	SAVE	LETTER/S
Rule	MostNA	1918	1919	-	Mar	lastSun	2:00	1:00	D
Rule	MostNA	1918	1919	-	Oct	lastSun	2:00	0	S
Rule	MostNA	1942	only	-	Feb	9	2:00	1:00	W # War
Rule	MostNA	1945	only	-	Sep	30	2:00	0	S
Rule	MostNA	1967	1973	-	Apr	lastSun	2:00	1:00	D
Rule	MostNA	1967	1973	-	Oct	lastSun	2:00	0	S
Rule	MostNA	1974	only	-	Jan	6	2:00	1:00	D
Rule	MostNA	1974	only	-	Nov	24	2:00	0	S
Rule	MostNA	1975	only	-	Feb	23	2:00	1:00	D
Rule	MostNA	1975	only	-	Oct	26	2:00	0	S
Rule	MostNA	1976	1986	-	Apr	lastSun	2:00	1:00	D
Rule	MostNA	1976	1986	-	Oct	lastSun	2:00	0	S
Rule	MostNA	1987	2037	-	Apr	Sun>=1	2:00	1:00	D
Rule	MostNA	1987	2037	-	Oct	lastSun	2:00	0	S

###############################################################################

# New names

# Zone	NAME		GMTOFF	RULES	FORMAT
Zone	Atlantic	-4:00	MostNA	A%sT
Zone	Eastern		-5:00	MostNA	E%sT
Zone	Central		-6:00	MostNA	C%sT
Zone	Mountain	-7:00	MostNA	M%sT
Zone	Pacific		-8:00	MostNA	P%sT
Zone	Yukon		-9:00	MostNA	Y%sT
Zone	Aleutian	-10:00	MostNA	A%sT
Zone	Newfoundland	-3:30	-	NST	# Is DST now observed here?
						# If so, when did it start?

# Old names

# Link	LINK-FROM	LINK-TO
Link	Eastern		EST5EDT
Link	Central		CST6CDT
Link	Mountain	MST7MDT
Link	Pacific		PST8PDT

# Nonstandard mainland areas:

Rule	SomeUS	1918	1919	-	Mar	lastSun	2:00	1:00	D
Rule	SomeUS	1918	1919	-	Oct	lastSun	2:00	0	S
Rule	SomeUS	1942	only	-	Feb	9	2:00	1:00	W # War
Rule	SomeUS	1945	only	-	Sep	30	2:00	0	S

Zone	East-Indiana	-5:00	SomeUS	E%sT # Usually standard near South Bend
Zone	Arizona		-7:00	SomeUS	M%sT # Usually standard in Arizona

# And then there's Hawaii.
# DST was observed for one day in 1933.
# Standard time was change by half an hour in 1947; this accounts for
# the half-hour offsets before then, and the peculiar first rule.
# (An alternative is to have "Zone Hawaiian -10:30..." with a
# current standard offset of 0:30; this seems a bit more obscure.)
#
# Things have been calm since 1947.

Rule	Hawaii	1901	only	-	Dec	14	0:00	-0:30	S
Rule	Hawaii	1918	1919	-	Mar	lastSun	2:00	0:30	D
Rule	Hawaii	1918	1919	-	Oct	lastSun	2:00	-0:30	S
Rule	Hawaii	1933	only	-	Apr	30	2:00	0:30	D
Rule	Hawaii	1933	only	-	May	1	2:00	-0:30	S
Rule	Hawaii	1942	only	-	Feb	9	2:00	0:30	W # War
Rule	Hawaii	1945	only	-	Sep	30	2:00	-0:30	S
Rule	Hawaii	1947	only	-	Jun	8	2:00	0	S

Zone	Hawaiian	-10:00	Hawaii	H%sT
End of northamerica
echo pacificnew 1>&2
cat >pacificnew <<'End of pacificnew'
# @(#)pacificnew	2.2

# "Pacific Presidential Election Time" has been contemplated by the US Congress

# Rule	NAME	FROM	TO	TYPE	IN	ON	AT	SAVE	LETTER/S
Rule	Twilite	1918	1919	-	Mar	lastSun	2:00	1:00	D
Rule	Twilite	1918	1919	-	Oct	lastSun	2:00	0	S
Rule	Twilite	1942	only	-	Feb	9	2:00	1:00	W # War
Rule	Twilite	1945	only	-	Sep	30	2:00	0	S
Rule	Twilite	1967	1973	-	Apr	lastSun	2:00	1:00	D
Rule	Twilite	1967	1973	-	Oct	lastSun	2:00	0	S
Rule	Twilite	1974	only	-	Jan	6	2:00	1:00	D
Rule	Twilite	1974	only	-	Nov	24	2:00	0	S
Rule	Twilite	1975	only	-	Feb	23	2:00	1:00	D
Rule	Twilite	1975	only	-	Oct	26	2:00	0	S
Rule	Twilite	1976	1986	-	Apr	lastSun	2:00	1:00	D
Rule	Twilite	1976	1986	-	Oct	lastSun	2:00	0	S
Rule	Twilite	1987	2037	-	Apr	Sun>=1	2:00	1:00	D
Rule	Twilite	1987	2037	uspres	Oct	lastSun	2:00	1:00	PE
Rule	Twilite	1987	2037	uspres	Nov	Sun>=7	2:00	0	S
Rule	Twilite	1987	2037	nonpres	Oct	lastSun	2:00	0	S

# Zone	NAME		GMTOFF	RULES	FORMAT
Zone	Pacific-New	-8:00	Twilite	P%sT
End of pacificnew
exit