Theory revision 1.9
11.9Smlelstv#	$NetBSD: Theory,v 1.9 2009/12/31 22:49:15 mlelstv Exp $
21.9Smlelstv@(#)Theory	8.3
31.9SmlelstvThis file is in the public domain, so clarified as of
41.9Smlelstv2009-05-17 by Arthur David Olson.
51.2Sperry
61.2Sperry----- Outline -----
71.2Sperry
81.2Sperry	Time and date functions
91.2Sperry	Names of time zone regions
101.2Sperry	Time zone abbreviations
111.4Skleink	Calendrical issues
121.8Skleink	Time and time zones on Mars
131.2Sperry
141.2Sperry----- Time and date functions -----
151.2Sperry
161.9SmlelstvThese time and date functions are upwards compatible with POSIX,
171.7Skleinkan international standard for UNIX-like systems.
181.9SmlelstvAs of this writing, the current edition of POSIX is:
191.2Sperry
201.9Smlelstv  Standard for Information technology
211.9Smlelstv  -- Portable Operating System Interface (POSIX (R))
221.9Smlelstv  -- System Interfaces
231.9Smlelstv  IEEE Std 1003.1, 2004 Edition
241.9Smlelstv  <http://www.opengroup.org/online-pubs?DOC=7999959899>
251.9Smlelstv  <http://www.opengroup.org/pubs/catalog/t041.htm>
261.2Sperry
271.9SmlelstvPOSIX has the following properties and limitations.
281.2Sperry
291.9Smlelstv*	In POSIX, time display in a process is controlled by the
301.9Smlelstv	environment variable TZ.  Unfortunately, the POSIX TZ string takes
311.2Sperry	a form that is hard to describe and is error-prone in practice.
321.9Smlelstv	Also, POSIX TZ strings can't deal with other (for example, Israeli)
331.2Sperry	daylight saving time rules, or situations where more than two
341.1Sjtc	time zone abbreviations are used in an area.
351.1Sjtc
361.9Smlelstv	The POSIX TZ string takes the following form:
371.2Sperry
381.2Sperry		stdoffset[dst[offset],date[/time],date[/time]]
391.2Sperry
401.2Sperry	where:
411.6Skleink
421.2Sperry	std and dst
431.2Sperry		are 3 or more characters specifying the standard
441.2Sperry		and daylight saving time (DST) zone names.
451.9Smlelstv		Starting with POSIX.1-2001, std and dst may also be
461.9Smlelstv		in a quoted form like "<UTC+10>"; this allows
471.9Smlelstv		"+" and "-" in the names.
481.2Sperry	offset
491.2Sperry		is of the form `[-]hh:[mm[:ss]]' and specifies the
501.2Sperry		offset west of UTC.  The default DST offset is one hour
511.2Sperry		ahead of standard time.
521.2Sperry	date[/time],date[/time]
531.2Sperry		specifies the beginning and end of DST.  If this is absent,
541.2Sperry		the system supplies its own rules for DST, and these can
551.2Sperry		differ from year to year; typically US DST rules are used.
561.2Sperry	time
571.2Sperry		takes the form `hh:[mm[:ss]]' and defaults to 02:00.
581.2Sperry	date
591.2Sperry		takes one of the following forms:
601.2Sperry		Jn (1<=n<=365)
611.2Sperry			origin-1 day number not counting February 29
621.2Sperry		n (0<=n<=365)
631.2Sperry			origin-0 day number counting February 29 if present
641.2Sperry		Mm.n.d (0[Sunday]<=d<=6[Saturday], 1<=n<=5, 1<=m<=12)
651.2Sperry			for the dth day of week n of month m of the year,
661.2Sperry			where week 1 is the first week in which day d appears,
671.2Sperry			and `5' stands for the last week in which day d appears
681.2Sperry			(which may be either the 4th or 5th week).
691.2Sperry
701.9Smlelstv	Here is an example POSIX TZ string, for US Pacific time using rules
711.9Smlelstv	appropriate from 1987 through 2006:
721.9Smlelstv
731.9Smlelstv		TZ='PST8PDT,M4.1.0/02:00,M10.5.0/02:00'
741.9Smlelstv
751.9Smlelstv	This POSIX TZ string is hard to remember, and mishandles time stamps
761.9Smlelstv	before 1987 and after 2006.  With this package you can use this
771.9Smlelstv	instead:
781.9Smlelstv
791.9Smlelstv		TZ='America/Los_Angeles'
801.9Smlelstv
811.9Smlelstv*	POSIX does not define the exact meaning of TZ values like "EST5EDT".
821.9Smlelstv	Typically the current US DST rules are used to interpret such values,
831.2Sperry	but this means that the US DST rules are compiled into each program
841.2Sperry	that does time conversion.  This means that when US time conversion
851.1Sjtc	rules change (as in the United States in 1987), all programs that
861.1Sjtc	do time conversion must be recompiled to ensure proper results.
871.1Sjtc
881.9Smlelstv*	In POSIX, there's no tamper-proof way for a process to learn the
891.1Sjtc	system's best idea of local wall clock.  (This is important for
901.1Sjtc	applications that an administrator wants used only at certain times--
911.1Sjtc	without regard to whether the user has fiddled the "TZ" environment
921.3Sjtc	variable.  While an administrator can "do everything in UTC" to get
931.1Sjtc	around the problem, doing so is inconvenient and precludes handling
941.2Sperry	daylight saving time shifts--as might be required to limit phone
951.1Sjtc	calls to off-peak hours.)
961.1Sjtc
971.9Smlelstv*	POSIX requires that systems ignore leap seconds.
981.1Sjtc
991.9SmlelstvThese are the extensions that have been made to the POSIX functions:
1001.1Sjtc
1011.1Sjtc*	The "TZ" environment variable is used in generating the name of a file
1021.1Sjtc	from which time zone information is read (or is interpreted a la
1031.1Sjtc	POSIX); "TZ" is no longer constrained to be a three-letter time zone
1041.1Sjtc	name followed by a number of hours and an optional three-letter
1051.1Sjtc	daylight time zone name.  The daylight saving time rules to be used
1061.1Sjtc	for a particular time zone are encoded in the time zone file;
1071.1Sjtc	the format of the file allows U.S., Australian, and other rules to be
1081.1Sjtc	encoded, and allows for situations where more than two time zone
1091.1Sjtc	abbreviations are used.
1101.1Sjtc
1111.1Sjtc	It was recognized that allowing the "TZ" environment variable to
1121.2Sperry	take on values such as "America/New_York" might cause "old" programs
1131.1Sjtc	(that expect "TZ" to have a certain form) to operate incorrectly;
1141.1Sjtc	consideration was given to using some other environment variable
1151.1Sjtc	(for example, "TIMEZONE") to hold the string used to generate the
1161.1Sjtc	time zone information file name.  In the end, however, it was decided
1171.1Sjtc	to continue using "TZ":  it is widely used for time zone purposes;
1181.1Sjtc	separately maintaining both "TZ" and "TIMEZONE" seemed a nuisance;
1191.1Sjtc	and systems where "new" forms of "TZ" might cause problems can simply
1201.1Sjtc	use TZ values such as "EST5EDT" which can be used both by
1211.1Sjtc	"new" programs (a la POSIX) and "old" programs (as zone names and
1221.1Sjtc	offsets).
1231.1Sjtc
1241.1Sjtc*	To handle places where more than two time zone abbreviations are used,
1251.1Sjtc	the functions "localtime" and "gmtime" set tzname[tmp->tm_isdst]
1261.1Sjtc	(where "tmp" is the value the function returns) to the time zone
1271.9Smlelstv	abbreviation to be used.  This differs from POSIX, where the elements
1281.1Sjtc	of tzname are only changed as a result of calls to tzset.
1291.1Sjtc
1301.1Sjtc*	Since the "TZ" environment variable can now be used to control time
1311.1Sjtc	conversion, the "daylight" and "timezone" variables are no longer
1321.2Sperry	needed.  (These variables are defined and set by "tzset"; however, their
1331.1Sjtc	values will not be used by "localtime.")
1341.1Sjtc
1351.1Sjtc*	The "localtime" function has been set up to deliver correct results
1361.1Sjtc	for near-minimum or near-maximum time_t values.  (A comment in the
1371.1Sjtc	source code tells how to get compatibly wrong results).
1381.1Sjtc
1391.1Sjtc*	A function "tzsetwall" has been added to arrange for the system's
1401.1Sjtc	best approximation to local wall clock time to be delivered by
1411.1Sjtc	subsequent calls to "localtime."  Source code for portable
1421.1Sjtc	applications that "must" run on local wall clock time should call
1431.2Sperry	"tzsetwall();" if such code is moved to "old" systems that don't
1441.2Sperry	provide tzsetwall, you won't be able to generate an executable program.
1451.1Sjtc	(These time zone functions also arrange for local wall clock time to be
1461.1Sjtc	used if tzset is called--directly or indirectly--and there's no "TZ"
1471.1Sjtc	environment variable; portable applications should not, however, rely
1481.1Sjtc	on this behavior since it's not the way SVR2 systems behave.)
1491.1Sjtc
1501.9Smlelstv*	These functions can account for leap seconds, thanks to Bradley White.
1511.1Sjtc
1521.2SperryPoints of interest to folks with other systems:
1531.2Sperry
1541.2Sperry*	This package is already part of many POSIX-compliant hosts,
1551.2Sperry	including BSD, HP, Linux, Network Appliance, SCO, SGI, and Sun.
1561.2Sperry	On such hosts, the primary use of this package
1571.2Sperry	is to update obsolete time zone rule tables.
1581.2Sperry	To do this, you may need to compile the time zone compiler
1591.2Sperry	`zic' supplied with this package instead of using the system `zic',
1601.2Sperry	since the format of zic's input changed slightly in late 1994,
1611.2Sperry	and many vendors still do not support the new input format.
1621.2Sperry
1631.7Skleink*	The UNIX Version 7 "timezone" function is not present in this package;
1641.1Sjtc	it's impossible to reliably map timezone's arguments (a "minutes west
1651.1Sjtc	of GMT" value and a "daylight saving time in effect" flag) to a
1661.1Sjtc	time zone abbreviation, and we refuse to guess.
1671.1Sjtc	Programs that in the past used the timezone function may now examine
1681.1Sjtc	tzname[localtime(&clock)->tm_isdst] to learn the correct time
1691.2Sperry	zone abbreviation to use.  Alternatively, use
1701.2Sperry	localtime(&clock)->tm_zone if this has been enabled.
1711.2Sperry
1721.2Sperry*	The 4.2BSD gettimeofday function is not used in this package.
1731.2Sperry	This formerly let users obtain the current UTC offset and DST flag,
1741.2Sperry	but this functionality was removed in later versions of BSD.
1751.1Sjtc
1761.2Sperry*	In SVR2, time conversion fails for near-minimum or near-maximum
1771.3Sjtc	time_t values when doing conversions for places that don't use UTC.
1781.2Sperry	This package takes care to do these conversions correctly.
1791.2Sperry
1801.2SperryThe functions that are conditionally compiled if STD_INSPIRED is defined
1811.2Sperryshould, at this point, be looked on primarily as food for thought.  They are
1821.2Sperrynot in any sense "standard compatible"--some are not, in fact, specified in
1831.2Sperry*any* standard.  They do, however, represent responses of various authors to
1841.1Sjtcstandardization proposals.
1851.1Sjtc
1861.1SjtcOther time conversion proposals, in particular the one developed by folks at
1871.1SjtcHewlett Packard, offer a wider selection of functions that provide capabilities
1881.1Sjtcbeyond those provided here.  The absence of such functions from this package
1891.1Sjtcis not meant to discourage the development, standardization, or use of such
1901.1Sjtcfunctions.  Rather, their absence reflects the decision to make this package
1911.9Smlelstvcontain valid extensions to POSIX, to ensure its broad acceptability.  If
1921.9Smlelstvmore powerful time conversion functions can be standardized, so much the
1931.9Smlelstvbetter.
1941.2Sperry
1951.2Sperry
1961.2Sperry----- Names of time zone rule files -----
1971.2Sperry
1981.6SkleinkThe time zone rule file naming conventions attempt to strike a balance
1991.6Skleinkamong the following goals:
2001.6Skleink
2011.6Skleink * Uniquely identify every national region where clocks have all
2021.6Skleink   agreed since 1970.  This is essential for the intended use: static
2031.6Skleink   clocks keeping local civil time.
2041.6Skleink
2051.6Skleink * Indicate to humans as to where that region is.  This simplifes use.
2061.6Skleink
2071.6Skleink * Be robust in the presence of political changes.  This reduces the
2081.6Skleink   number of updates and backward-compatibility hacks.  For example,
2091.6Skleink   names of countries are ordinarily not used, to avoid
2101.6Skleink   incompatibilities when countries change their name
2111.6Skleink   (e.g. Zaire->Congo) or when locations change countries
2121.6Skleink   (e.g. Hong Kong from UK colony to China).
2131.6Skleink
2141.6Skleink * Be portable to a wide variety of implementations.
2151.6Skleink   This promotes use of the technology.
2161.6Skleink
2171.6Skleink * Use a consistent naming convention over the entire world.
2181.6Skleink   This simplifies both use and maintenance.
2191.6Skleink
2201.6SkleinkThis naming convention is not intended for use by inexperienced users
2211.6Skleinkto select TZ values by themselves (though they can of course examine
2221.6Skleinkand reuse existing settings).  Distributors should provide
2231.6Skleinkdocumentation and/or a simple selection interface that explains the
2241.6Skleinknames; see the 'tzselect' program supplied with this distribution for
2251.6Skleinkone example.
2261.2Sperry
2271.2SperryNames normally have the form AREA/LOCATION, where AREA is the name
2281.2Sperryof a continent or ocean, and LOCATION is the name of a specific
2291.2Sperrylocation within that region.  North and South America share the same
2301.2Sperryarea, `America'.  Typical names are `Africa/Cairo', `America/New_York',
2311.2Sperryand `Pacific/Honolulu'.
2321.2Sperry
2331.2SperryHere are the general rules used for choosing location names,
2341.2Sperryin decreasing order of importance:
2351.2Sperry
2361.6Skleink	Use only valid POSIX file name components (i.e., the parts of
2371.6Skleink		names other than `/').  Within a file name component,
2381.6Skleink		use only ASCII letters, `.', `-' and `_'.  Do not use
2391.6Skleink		digits, as that might create an ambiguity with POSIX
2401.6Skleink		TZ strings.  A file name component must not exceed 14
2411.6Skleink		characters or start with `-'.  E.g., prefer `Brunei'
2421.6Skleink		to `Bandar_Seri_Begawan'.
2431.2Sperry	Include at least one location per time zone rule set per country.
2441.5Skleink		One such location is enough.  Use ISO 3166 (see the file
2451.5Skleink		iso3166.tab) to help decide whether something is a country.
2461.9Smlelstv		However, uninhabited ISO 3166 regions like Bouvet Island
2471.9Smlelstv		do not need locations, since local time is not defined there.
2481.2Sperry	If all the clocks in a country's region have agreed since 1970,
2491.2Sperry		don't bother to include more than one location
2501.2Sperry		even if subregions' clocks disagreed before 1970.
2511.2Sperry		Otherwise these tables would become annoyingly large.
2521.2Sperry	If a name is ambiguous, use a less ambiguous alternative;
2531.2Sperry		e.g. many cities are named San Jose and Georgetown, so
2541.2Sperry		prefer `Costa_Rica' to `San_Jose' and `Guyana' to `Georgetown'.
2551.2Sperry	Keep locations compact.  Use cities or small islands, not countries
2561.2Sperry		or regions, so that any future time zone changes do not split
2571.2Sperry		locations into different time zones.  E.g. prefer `Paris'
2581.2Sperry		to `France', since France has had multiple time zones.
2591.6Skleink	Use mainstream English spelling, e.g. prefer `Rome' to `Roma', and
2601.2Sperry		prefer `Athens' to the true name (which uses Greek letters).
2611.6Skleink		The POSIX file name restrictions encourage this rule.
2621.2Sperry	Use the most populous among locations in a country's time zone,
2631.2Sperry		e.g. prefer `Shanghai' to `Beijing'.  Among locations with
2641.2Sperry		similar populations, pick the best-known location,
2651.2Sperry		e.g. prefer `Rome' to `Milan'.
2661.2Sperry	Use the singular form, e.g. prefer `Canary' to `Canaries'.
2671.2Sperry	Omit common suffixes like `_Islands' and `_City', unless that
2681.2Sperry		would lead to ambiguity.  E.g. prefer `Cayman' to
2691.2Sperry		`Cayman_Islands' and `Guatemala' to `Guatemala_City',
2701.2Sperry		but prefer `Mexico_City' to `Mexico' because the country
2711.2Sperry		of Mexico has several time zones.
2721.2Sperry	Use `_' to represent a space.
2731.2Sperry	Omit `.' from abbreviations in names, e.g. prefer `St_Helena'
2741.2Sperry		to `St._Helena'.
2751.5Skleink	Do not change established names if they only marginally
2761.5Skleink		violate the above rules.  For example, don't change
2771.5Skleink		the existing name `Rome' to `Milan' merely because
2781.5Skleink		Milan's population has grown to be somewhat greater
2791.5Skleink		than Rome's.
2801.5Skleink	If a name is changed, put its old spelling in the `backward' file.
2811.2Sperry
2821.2SperryThe file `zone.tab' lists the geographical locations used to name
2831.9Smlelstvtime zone rule files.  It is intended to be an exhaustive list
2841.9Smlelstvof canonical names for geographic regions.
2851.2Sperry
2861.2SperryOlder versions of this package used a different naming scheme,
2871.2Sperryand these older names are still supported.
2881.5SkleinkSee the file `backward' for most of these older names
2891.2Sperry(e.g. `US/Eastern' instead of `America/New_York').
2901.2SperryThe other old-fashioned names still supported are
2911.2Sperry`WET', `CET', `MET', `EET' (see the file `europe'),
2921.2Sperryand `Factory' (see the file `factory').
2931.2Sperry
2941.2Sperry
2951.2Sperry----- Time zone abbreviations -----
2961.2Sperry
2971.2SperryWhen this package is installed, it generates time zone abbreviations
2981.9Smlelstvlike `EST' to be compatible with human tradition and POSIX.
2991.2SperryHere are the general rules used for choosing time zone abbreviations,
3001.2Sperryin decreasing order of importance:
3011.2Sperry
3021.6Skleink	Use abbreviations that consist of three or more ASCII letters.
3031.2Sperry		Previous editions of this database also used characters like
3041.2Sperry		' ' and '?', but these characters have a special meaning to
3051.2Sperry		the shell and cause commands like
3061.2Sperry			set `date`
3071.6Skleink		to have unexpected effects.
3081.6Skleink		Previous editions of this rule required upper-case letters,
3091.6Skleink		but the Congressman who introduced Chamorro Standard Time
3101.6Skleink		preferred "ChST", so the rule has been relaxed.
3111.6Skleink
3121.6Skleink		This rule guarantees that all abbreviations could have
3131.9Smlelstv		been specified by a POSIX TZ string.  POSIX
3141.6Skleink		requires at least three characters for an
3151.9Smlelstv		abbreviation.  POSIX through 2000 says that an abbreviation
3161.6Skleink		cannot start with ':', and cannot contain ',', '-',
3171.9Smlelstv		'+', NUL, or a digit.  POSIX from 2001 on changes this
3181.9Smlelstv		rule to say that an abbreviation can contain only '-', '+',
3191.9Smlelstv		and alphanumeric characters from the portable character set
3201.9Smlelstv		in the current locale.  To be portable to both sets of
3211.6Skleink		rules, an abbreviation must therefore use only ASCII
3221.9Smlelstv		letters.
3231.6Skleink
3241.2Sperry	Use abbreviations that are in common use among English-speakers,
3251.2Sperry		e.g. `EST' for Eastern Standard Time in North America.
3261.2Sperry		We assume that applications translate them to other languages
3271.2Sperry		as part of the normal localization process; for example,
3281.2Sperry		a French application might translate `EST' to `HNE'.
3291.6Skleink
3301.2Sperry	For zones whose times are taken from a city's longitude, use the
3311.2Sperry		traditional xMT notation, e.g. `PMT' for Paris Mean Time.
3321.2Sperry		The only name like this in current use is `GMT'.
3331.6Skleink
3341.2Sperry	If there is no common English abbreviation, abbreviate the English
3351.2Sperry		translation of the usual phrase used by native speakers.
3361.2Sperry		If this is not available or is a phrase mentioning the country
3371.2Sperry		(e.g. ``Cape Verde Time''), then:
3381.2Sperry
3391.2Sperry		When a country has a single or principal time zone region,
3401.2Sperry			append `T' to the country's ISO	code, e.g. `CVT' for
3411.2Sperry			Cape Verde Time.  For summer time append `ST';
3421.2Sperry			for double summer time append `DST'; etc.
3431.2Sperry		When a country has multiple time zones, take the first three
3441.2Sperry			letters of an English place name identifying each zone
3451.2Sperry			and then append `T', `ST', etc. as before;
3461.2Sperry			e.g. `VLAST' for VLAdivostok Summer Time.
3471.2Sperry
3481.9Smlelstv	Use UTC (with time zone abbreviation "zzz") for locations while
3491.9Smlelstv		uninhabited.  The "zzz" mnemonic is that these locations are,
3501.9Smlelstv		in some sense, asleep.
3511.6Skleink
3521.2SperryApplication writers should note that these abbreviations are ambiguous
3531.2Sperryin practice: e.g. `EST' has a different meaning in Australia than
3541.2Sperryit does in the United States.  In new applications, it's often better
3551.3Sjtcto use numeric UTC offsets like `-0500' instead of time zone
3561.2Sperryabbreviations like `EST'; this avoids the ambiguity.
3571.4Skleink
3581.4Skleink
3591.4Skleink----- Calendrical issues -----
3601.4Skleink
3611.4SkleinkCalendrical issues are a bit out of scope for a time zone database,
3621.4Skleinkbut they indicate the sort of problems that we would run into if we
3631.4Skleinkextended the time zone database further into the past.  An excellent
3641.9Smlelstvresource in this area is Edward M. Reingold and Nachum Dershowitz,
3651.9Smlelstv<a href="http://emr.cs.uiuc.edu/home/reingold/calendar-book/second-edition/">
3661.9SmlelstvCalendrical Calculations: The Millennium Edition
3671.9Smlelstv</a>, Cambridge University Press (2001).  Other information and
3681.4Skleinksources are given below.  They sometimes disagree.
3691.4Skleink
3701.4Skleink
3711.4SkleinkFrance
3721.4Skleink
3731.4SkleinkGregorian calendar adopted 1582-12-20.
3741.4SkleinkFrench Revolutionary calendar used 1793-11-24 through 1805-12-31,
3751.4Skleinkand (in Paris only) 1871-05-06 through 1871-05-23.
3761.4Skleink
3771.4Skleink
3781.4SkleinkRussia
3791.4Skleink
3801.9SmlelstvFrom Chris Carrier (1996-12-02):
3811.4SkleinkOn 1929-10-01 the Soviet Union instituted an ``Eternal Calendar''
3821.4Skleinkwith 30-day months plus 5 holidays, with a 5-day week.
3831.4SkleinkOn 1931-12-01 it changed to a 6-day week; in 1934 it reverted to the
3841.4SkleinkGregorian calendar while retaining the 6-day week; on 1940-06-27 it
3851.4Skleinkreverted to the 7-day week.  With the 6-day week the usual days
3861.4Skleinkoff were the 6th, 12th, 18th, 24th and 30th of the month.
3871.4Skleink(Source: Evitiar Zerubavel, _The Seven Day Circle_)
3881.4Skleink
3891.4Skleink
3901.4SkleinkMark Brader reported a similar story in "The Book of Calendars", edited
3911.4Skleinkby Frank Parise (1982, Facts on File, ISBN 0-8719-6467-8), page 377.  But:
3921.4Skleink
3931.4SkleinkFrom: Petteri Sulonen (via Usenet)
3941.4SkleinkDate: 14 Jan 1999 00:00:00 GMT
3951.9Smlelstv...
3961.4Skleink
3971.4SkleinkIf your source is correct, how come documents between 1929 -- 1940 were
3981.4Skleinkstill dated using the conventional, Gregorian calendar?
3991.4Skleink
4001.4SkleinkI can post a scan of a document dated December 1, 1934, signed by
4011.4SkleinkYenukidze, the secretary, on behalf of Kalinin, the President of the
4021.4SkleinkExecutive Committee of the Supreme Soviet, if you like.
4031.4Skleink
4041.4Skleink
4051.4Skleink
4061.4SkleinkSweden (and Finland)
4071.4Skleink
4081.9SmlelstvFrom: Mark Brader
4091.4Skleink<a href="news:1996Jul6.012937.29190@sq.com">
4101.4SkleinkSubject: Re: Gregorian reform -- a part of locale?
4111.4Skleink</a>
4121.4SkleinkDate: 1996-07-06
4131.4Skleink
4141.4SkleinkIn 1700, Denmark made the transition from Julian to Gregorian.  Sweden
4151.4Skleinkdecided to *start* a transition in 1700 as well, but rather than have one of
4161.4Skleinkthose unsightly calendar gaps :-), they simply decreed that the next leap
4171.4Skleinkyear after 1696 would be in 1744 -- putting the whole country on a calendar
4181.4Skleinkdifferent from both Julian and Gregorian for a period of 40 years.
4191.4Skleink
4201.4SkleinkHowever, in 1704 something went wrong and the plan was not carried through;
4211.4Skleinkthey did, after all, have a leap year that year.  And one in 1708.  In 1712
4221.4Skleinkthey gave it up and went back to Julian, putting 30 days in February that
4231.4Skleinkyear!...
4241.4Skleink
4251.4SkleinkThen in 1753, Sweden made the transition to Gregorian in the usual manner,
4261.4Skleinkgetting there only 13 years behind the original schedule.
4271.4Skleink
4281.4Skleink(A previous posting of this story was challenged, and Swedish readers
4291.4Skleinkproduced the following references to support it: "Tiderakning och historia"
4301.4Skleinkby Natanael Beckman (1924) and "Tid, en bok om tiderakning och
4311.4Skleinkkalendervasen" by Lars-Olof Lode'n (no date was given).)
4321.4Skleink
4331.4Skleink
4341.4SkleinkGrotefend's data
4351.4Skleink
4361.9SmlelstvFrom: "Michael Palmer" [with one obvious typo fixed]
4371.4SkleinkSubject: Re: Gregorian Calendar (was Re: Another FHC related question
4381.4SkleinkNewsgroups: soc.genealogy.german
4391.4SkleinkDate: Tue, 9 Feb 1999 02:32:48 -800
4401.9Smlelstv...
4411.4Skleink
4421.6SkleinkThe following is a(n incomplete) listing, arranged chronologically, of
4431.6SkleinkEuropean states, with the date they converted from the Julian to the
4441.4SkleinkGregorian calendar:
4451.4Skleink
4461.4Skleink04/15 Oct 1582 - Italy (with exceptions), Spain, Portugal, Poland (Roman
4471.4Skleink                 Catholics and Danzig only)
4481.4Skleink09/20 Dec 1582 - France, Lorraine
4491.4Skleink
4501.4Skleink21 Dec 1582/
4511.4Skleink   01 Jan 1583 - Holland, Brabant, Flanders, Hennegau
4521.4Skleink10/21 Feb 1583 - bishopric of Liege (L"uttich)
4531.4Skleink13/24 Feb 1583 - bishopric of Augsburg
4541.4Skleink04/15 Oct 1583 - electorate of Trier
4551.4Skleink05/16 Oct 1583 - Bavaria, bishoprics of Freising, Eichstedt, Regensburg,
4561.4Skleink                 Salzburg, Brixen
4571.4Skleink13/24 Oct 1583 - Austrian Oberelsass and Breisgau
4581.4Skleink20/31 Oct 1583 - bishopric of Basel
4591.4Skleink02/13 Nov 1583 - duchy of J"ulich-Berg
4601.4Skleink02/13 Nov 1583 - electorate and city of K"oln
4611.4Skleink04/15 Nov 1583 - bishopric of W"urzburg
4621.4Skleink11/22 Nov 1583 - electorate of Mainz
4631.4Skleink16/27 Nov 1583 - bishopric of Strassburg and the margraviate of Baden
4641.4Skleink17/28 Nov 1583 - bishopric of M"unster and duchy of Cleve
4651.4Skleink14/25 Dec 1583 - Steiermark
4661.4Skleink
4671.4Skleink06/17 Jan 1584 - Austria and Bohemia
4681.4Skleink11/22 Jan 1584 - Luzern, Uri, Schwyz, Zug, Freiburg, Solothurn
4691.4Skleink12/23 Jan 1584 - Silesia and the Lausitz
4701.4Skleink22 Jan/
4711.4Skleink   02 Feb 1584 - Hungary (legally on 21 Oct 1587)
4721.4Skleink      Jun 1584 - Unterwalden
4731.4Skleink01/12 Jul 1584 - duchy of Westfalen
4741.4Skleink
4751.4Skleink16/27 Jun 1585 - bishopric of Paderborn
4761.4Skleink
4771.4Skleink14/25 Dec 1590 - Transylvania
4781.4Skleink
4791.4Skleink22 Aug/
4801.4Skleink   02 Sep 1612 - duchy of Prussia
4811.4Skleink
4821.4Skleink13/24 Dec 1614 - Pfalz-Neuburg
4831.4Skleink
4841.4Skleink          1617 - duchy of Kurland (reverted to the Julian calendar in
4851.4Skleink                 1796)
4861.4Skleink
4871.4Skleink          1624 - bishopric of Osnabr"uck
4881.4Skleink
4891.4Skleink          1630 - bishopric of Minden
4901.4Skleink
4911.4Skleink15/26 Mar 1631 - bishopric of Hildesheim
4921.4Skleink
4931.4Skleink          1655 - Kanton Wallis
4941.4Skleink
4951.4Skleink05/16 Feb 1682 - city of Strassburg
4961.4Skleink
4971.4Skleink18 Feb/
4981.4Skleink   01 Mar 1700 - Protestant Germany (including Swedish possessions in
4991.4Skleink                 Germany), Denmark, Norway
5001.4Skleink30 Jun/
5011.4Skleink   12 Jul 1700 - Gelderland, Zutphen
5021.4Skleink10 Nov/
5031.4Skleink   12 Dec 1700 - Utrecht, Overijssel
5041.4Skleink
5051.4Skleink31 Dec 1700/
5061.4Skleink   12 Jan 1701 - Friesland, Groningen, Z"urich, Bern, Basel, Geneva,
5071.4Skleink                 Turgau, and Schaffhausen
5081.4Skleink
5091.4Skleink          1724 - Glarus, Appenzell, and the city of St. Gallen
5101.4Skleink
5111.4Skleink01 Jan 1750    - Pisa and Florence
5121.4Skleink
5131.4Skleink02/14 Sep 1752 - Great Britain
5141.4Skleink
5151.4Skleink17 Feb/
5161.4Skleink   01 Mar 1753 - Sweden
5171.4Skleink
5181.4Skleink1760-1812      - Graub"unden
5191.4Skleink
5201.6SkleinkThe Russian empire (including Finland and the Baltic states) did not
5211.4Skleinkconvert to the Gregorian calendar until the Soviet revolution of 1917.
5221.4Skleink
5231.6SkleinkSource:  H. Grotefend, _Taschenbuch der Zeitrechnung des deutschen
5241.6SkleinkMittelalters und der Neuzeit_, herausgegeben von Dr. O. Grotefend
5251.4Skleink(Hannover:  Hahnsche Buchhandlung, 1941), pp. 26-28.
5261.8Skleink
5271.8Skleink
5281.8Skleink----- Time and time zones on Mars -----
5291.8Skleink
5301.8SkleinkSome people have adjusted their work schedules to fit Mars time.
5311.8SkleinkDozens of special Mars watches were built for Jet Propulsion
5321.8SkleinkLaboratory workers who kept Mars time during the Mars Exploration
5331.8SkleinkRovers mission (2004).  These timepieces look like normal Seikos and
5341.8SkleinkCitizens but use Mars seconds rather than terrestrial seconds.
5351.8Skleink
5361.8SkleinkA Mars solar day is called a "sol" and has a mean period equal to
5371.8Skleinkabout 24 hours 39 minutes 35.244 seconds in terrestrial time.  It is
5381.8Skleinkdivided into a conventional 24-hour clock, so each Mars second equals
5391.8Skleinkabout 1.02749125 terrestrial seconds.
5401.8Skleink
5411.8SkleinkThe prime meridian of Mars goes through the center of the crater
5421.8SkleinkAiry-0, named in honor of the British astronomer who built the
5431.8SkleinkGreenwich telescope that defines Earth's prime meridian.  Mean solar
5441.8Skleinktime on the Mars prime meridian is called Mars Coordinated Time (MTC).
5451.8Skleink
5461.8SkleinkEach landed mission on Mars has adopted a different reference for
5471.8Skleinksolar time keeping, so there is no real standard for Mars time zones.
5481.8SkleinkFor example, the Mars Exploration Rover project (2004) defined two
5491.8Skleinktime zones "Local Solar Time A" and "Local Solar Time B" for its two
5501.8Skleinkmissions, each zone designed so that its time equals local true solar
5511.8Skleinktime at approximately the middle of the nominal mission.  Such a "time
5521.8Skleinkzone" is not particularly suited for any application other than the
5531.8Skleinkmission itself.
5541.8Skleink
5551.8SkleinkMany calendars have been proposed for Mars, but none have achieved
5561.8Skleinkwide acceptance.  Astronomers often use Mars Sol Date (MSD) which is a
5571.8Skleinksequential count of Mars solar days elapsed since about 1873-12-29
5581.8Skleink12:00 GMT.
5591.8Skleink
5601.8SkleinkThe tz database does not currently support Mars time, but it is
5611.8Skleinkdocumented here in the hopes that support will be added eventually.
5621.8Skleink
5631.8SkleinkSources:
5641.8Skleink
5651.8SkleinkMichael Allison and Robert Schmunk,
5661.8Skleink"Technical Notes on Mars Solar Time as Adopted by the Mars24 Sunclock"
5671.9Smlelstv<http://www.giss.nasa.gov/tools/mars24/help/notes.html> (2004-07-30).
5681.8Skleink
5691.8SkleinkJia-Rui Chong, "Workdays Fit for a Martian", Los Angeles Times
5701.8Skleink(2004-01-14), pp A1, A20-A21.
571