Theory revision 1.8
11.8Skleink# $NetBSD: Theory,v 1.8 2004/05/27 20:39:49 kleink Exp $ 21.8Skleink@(#)Theory 7.15 31.1Sjtc 41.2Sperry 51.2Sperry----- Outline ----- 61.2Sperry 71.2Sperry Time and date functions 81.2Sperry Names of time zone regions 91.2Sperry Time zone abbreviations 101.4Skleink Calendrical issues 111.8Skleink Time and time zones on Mars 121.2Sperry 131.2Sperry 141.2Sperry----- Time and date functions ----- 151.2Sperry 161.2SperryThese time and date functions are upwards compatible with POSIX.1, 171.7Skleinkan international standard for UNIX-like systems. 181.2SperryAs of this writing, the current edition of POSIX.1 is: 191.2Sperry 201.2Sperry Information technology --Portable Operating System Interface (POSIX (R)) 211.2Sperry -- Part 1: System Application Program Interface (API) [C Language] 221.2Sperry ISO/IEC 9945-1:1996 231.2Sperry ANSI/IEEE Std 1003.1, 1996 Edition 241.2Sperry 1996-07-12 251.2Sperry 261.2SperryPOSIX.1 has the following properties and limitations. 271.2Sperry 281.2Sperry* In POSIX.1, time display in a process is controlled by the 291.2Sperry environment variable TZ. Unfortunately, the POSIX.1 TZ string takes 301.2Sperry a form that is hard to describe and is error-prone in practice. 311.2Sperry Also, POSIX.1 TZ strings can't deal with other (for example, Israeli) 321.2Sperry daylight saving time rules, or situations where more than two 331.1Sjtc time zone abbreviations are used in an area. 341.1Sjtc 351.2Sperry The POSIX.1 TZ string takes the following form: 361.2Sperry 371.2Sperry stdoffset[dst[offset],date[/time],date[/time]] 381.2Sperry 391.2Sperry where: 401.6Skleink 411.2Sperry std and dst 421.2Sperry are 3 or more characters specifying the standard 431.2Sperry and daylight saving time (DST) zone names. 441.2Sperry offset 451.2Sperry is of the form `[-]hh:[mm[:ss]]' and specifies the 461.2Sperry offset west of UTC. The default DST offset is one hour 471.2Sperry ahead of standard time. 481.2Sperry date[/time],date[/time] 491.2Sperry specifies the beginning and end of DST. If this is absent, 501.2Sperry the system supplies its own rules for DST, and these can 511.2Sperry differ from year to year; typically US DST rules are used. 521.2Sperry time 531.2Sperry takes the form `hh:[mm[:ss]]' and defaults to 02:00. 541.2Sperry date 551.2Sperry takes one of the following forms: 561.2Sperry Jn (1<=n<=365) 571.2Sperry origin-1 day number not counting February 29 581.2Sperry n (0<=n<=365) 591.2Sperry origin-0 day number counting February 29 if present 601.2Sperry Mm.n.d (0[Sunday]<=d<=6[Saturday], 1<=n<=5, 1<=m<=12) 611.2Sperry for the dth day of week n of month m of the year, 621.2Sperry where week 1 is the first week in which day d appears, 631.2Sperry and `5' stands for the last week in which day d appears 641.2Sperry (which may be either the 4th or 5th week). 651.2Sperry 661.2Sperry* In POSIX.1, when a TZ value like "EST5EDT" is parsed, 671.2Sperry typically the current US DST rules are used, 681.2Sperry but this means that the US DST rules are compiled into each program 691.2Sperry that does time conversion. This means that when US time conversion 701.1Sjtc rules change (as in the United States in 1987), all programs that 711.1Sjtc do time conversion must be recompiled to ensure proper results. 721.1Sjtc 731.2Sperry* In POSIX.1, there's no tamper-proof way for a process to learn the 741.1Sjtc system's best idea of local wall clock. (This is important for 751.1Sjtc applications that an administrator wants used only at certain times-- 761.1Sjtc without regard to whether the user has fiddled the "TZ" environment 771.3Sjtc variable. While an administrator can "do everything in UTC" to get 781.1Sjtc around the problem, doing so is inconvenient and precludes handling 791.2Sperry daylight saving time shifts--as might be required to limit phone 801.1Sjtc calls to off-peak hours.) 811.1Sjtc 821.2Sperry* POSIX.1 requires that systems ignore leap seconds. 831.1Sjtc 841.2SperryThese are the extensions that have been made to the POSIX.1 functions: 851.1Sjtc 861.1Sjtc* The "TZ" environment variable is used in generating the name of a file 871.1Sjtc from which time zone information is read (or is interpreted a la 881.1Sjtc POSIX); "TZ" is no longer constrained to be a three-letter time zone 891.1Sjtc name followed by a number of hours and an optional three-letter 901.1Sjtc daylight time zone name. The daylight saving time rules to be used 911.1Sjtc for a particular time zone are encoded in the time zone file; 921.1Sjtc the format of the file allows U.S., Australian, and other rules to be 931.1Sjtc encoded, and allows for situations where more than two time zone 941.1Sjtc abbreviations are used. 951.1Sjtc 961.1Sjtc It was recognized that allowing the "TZ" environment variable to 971.2Sperry take on values such as "America/New_York" might cause "old" programs 981.1Sjtc (that expect "TZ" to have a certain form) to operate incorrectly; 991.1Sjtc consideration was given to using some other environment variable 1001.1Sjtc (for example, "TIMEZONE") to hold the string used to generate the 1011.1Sjtc time zone information file name. In the end, however, it was decided 1021.1Sjtc to continue using "TZ": it is widely used for time zone purposes; 1031.1Sjtc separately maintaining both "TZ" and "TIMEZONE" seemed a nuisance; 1041.1Sjtc and systems where "new" forms of "TZ" might cause problems can simply 1051.1Sjtc use TZ values such as "EST5EDT" which can be used both by 1061.1Sjtc "new" programs (a la POSIX) and "old" programs (as zone names and 1071.1Sjtc offsets). 1081.1Sjtc 1091.1Sjtc* To handle places where more than two time zone abbreviations are used, 1101.1Sjtc the functions "localtime" and "gmtime" set tzname[tmp->tm_isdst] 1111.1Sjtc (where "tmp" is the value the function returns) to the time zone 1121.2Sperry abbreviation to be used. This differs from POSIX.1, where the elements 1131.1Sjtc of tzname are only changed as a result of calls to tzset. 1141.1Sjtc 1151.1Sjtc* Since the "TZ" environment variable can now be used to control time 1161.1Sjtc conversion, the "daylight" and "timezone" variables are no longer 1171.2Sperry needed. (These variables are defined and set by "tzset"; however, their 1181.1Sjtc values will not be used by "localtime.") 1191.1Sjtc 1201.1Sjtc* The "localtime" function has been set up to deliver correct results 1211.1Sjtc for near-minimum or near-maximum time_t values. (A comment in the 1221.1Sjtc source code tells how to get compatibly wrong results). 1231.1Sjtc 1241.1Sjtc* A function "tzsetwall" has been added to arrange for the system's 1251.1Sjtc best approximation to local wall clock time to be delivered by 1261.1Sjtc subsequent calls to "localtime." Source code for portable 1271.1Sjtc applications that "must" run on local wall clock time should call 1281.2Sperry "tzsetwall();" if such code is moved to "old" systems that don't 1291.2Sperry provide tzsetwall, you won't be able to generate an executable program. 1301.1Sjtc (These time zone functions also arrange for local wall clock time to be 1311.1Sjtc used if tzset is called--directly or indirectly--and there's no "TZ" 1321.1Sjtc environment variable; portable applications should not, however, rely 1331.1Sjtc on this behavior since it's not the way SVR2 systems behave.) 1341.1Sjtc 1351.2Sperry* These functions can account for leap seconds, thanks to Bradley White 1361.2Sperry (bww@k.cs.cmu.edu). 1371.1Sjtc 1381.2SperryPoints of interest to folks with other systems: 1391.2Sperry 1401.2Sperry* This package is already part of many POSIX-compliant hosts, 1411.2Sperry including BSD, HP, Linux, Network Appliance, SCO, SGI, and Sun. 1421.2Sperry On such hosts, the primary use of this package 1431.2Sperry is to update obsolete time zone rule tables. 1441.2Sperry To do this, you may need to compile the time zone compiler 1451.2Sperry `zic' supplied with this package instead of using the system `zic', 1461.2Sperry since the format of zic's input changed slightly in late 1994, 1471.2Sperry and many vendors still do not support the new input format. 1481.2Sperry 1491.7Skleink* The UNIX Version 7 "timezone" function is not present in this package; 1501.1Sjtc it's impossible to reliably map timezone's arguments (a "minutes west 1511.1Sjtc of GMT" value and a "daylight saving time in effect" flag) to a 1521.1Sjtc time zone abbreviation, and we refuse to guess. 1531.1Sjtc Programs that in the past used the timezone function may now examine 1541.1Sjtc tzname[localtime(&clock)->tm_isdst] to learn the correct time 1551.2Sperry zone abbreviation to use. Alternatively, use 1561.2Sperry localtime(&clock)->tm_zone if this has been enabled. 1571.2Sperry 1581.2Sperry* The 4.2BSD gettimeofday function is not used in this package. 1591.2Sperry This formerly let users obtain the current UTC offset and DST flag, 1601.2Sperry but this functionality was removed in later versions of BSD. 1611.1Sjtc 1621.2Sperry* In SVR2, time conversion fails for near-minimum or near-maximum 1631.3Sjtc time_t values when doing conversions for places that don't use UTC. 1641.2Sperry This package takes care to do these conversions correctly. 1651.2Sperry 1661.2SperryThe functions that are conditionally compiled if STD_INSPIRED is defined 1671.2Sperryshould, at this point, be looked on primarily as food for thought. They are 1681.2Sperrynot in any sense "standard compatible"--some are not, in fact, specified in 1691.2Sperry*any* standard. They do, however, represent responses of various authors to 1701.1Sjtcstandardization proposals. 1711.1Sjtc 1721.1SjtcOther time conversion proposals, in particular the one developed by folks at 1731.1SjtcHewlett Packard, offer a wider selection of functions that provide capabilities 1741.1Sjtcbeyond those provided here. The absence of such functions from this package 1751.1Sjtcis not meant to discourage the development, standardization, or use of such 1761.1Sjtcfunctions. Rather, their absence reflects the decision to make this package 1771.2Sperrycontain valid extensions to POSIX.1, to ensure its broad 1781.1Sjtcacceptability. If more powerful time conversion functions can be standardized, 1791.1Sjtcso much the better. 1801.2Sperry 1811.2Sperry 1821.2Sperry----- Names of time zone rule files ----- 1831.2Sperry 1841.6SkleinkThe time zone rule file naming conventions attempt to strike a balance 1851.6Skleinkamong the following goals: 1861.6Skleink 1871.6Skleink * Uniquely identify every national region where clocks have all 1881.6Skleink agreed since 1970. This is essential for the intended use: static 1891.6Skleink clocks keeping local civil time. 1901.6Skleink 1911.6Skleink * Indicate to humans as to where that region is. This simplifes use. 1921.6Skleink 1931.6Skleink * Be robust in the presence of political changes. This reduces the 1941.6Skleink number of updates and backward-compatibility hacks. For example, 1951.6Skleink names of countries are ordinarily not used, to avoid 1961.6Skleink incompatibilities when countries change their name 1971.6Skleink (e.g. Zaire->Congo) or when locations change countries 1981.6Skleink (e.g. Hong Kong from UK colony to China). 1991.6Skleink 2001.6Skleink * Be portable to a wide variety of implementations. 2011.6Skleink This promotes use of the technology. 2021.6Skleink 2031.6Skleink * Use a consistent naming convention over the entire world. 2041.6Skleink This simplifies both use and maintenance. 2051.6Skleink 2061.6SkleinkThis naming convention is not intended for use by inexperienced users 2071.6Skleinkto select TZ values by themselves (though they can of course examine 2081.6Skleinkand reuse existing settings). Distributors should provide 2091.6Skleinkdocumentation and/or a simple selection interface that explains the 2101.6Skleinknames; see the 'tzselect' program supplied with this distribution for 2111.6Skleinkone example. 2121.2Sperry 2131.2SperryNames normally have the form AREA/LOCATION, where AREA is the name 2141.2Sperryof a continent or ocean, and LOCATION is the name of a specific 2151.2Sperrylocation within that region. North and South America share the same 2161.2Sperryarea, `America'. Typical names are `Africa/Cairo', `America/New_York', 2171.2Sperryand `Pacific/Honolulu'. 2181.2Sperry 2191.2SperryHere are the general rules used for choosing location names, 2201.2Sperryin decreasing order of importance: 2211.2Sperry 2221.6Skleink Use only valid POSIX file name components (i.e., the parts of 2231.6Skleink names other than `/'). Within a file name component, 2241.6Skleink use only ASCII letters, `.', `-' and `_'. Do not use 2251.6Skleink digits, as that might create an ambiguity with POSIX 2261.6Skleink TZ strings. A file name component must not exceed 14 2271.6Skleink characters or start with `-'. E.g., prefer `Brunei' 2281.6Skleink to `Bandar_Seri_Begawan'. 2291.2Sperry Include at least one location per time zone rule set per country. 2301.5Skleink One such location is enough. Use ISO 3166 (see the file 2311.5Skleink iso3166.tab) to help decide whether something is a country. 2321.2Sperry If all the clocks in a country's region have agreed since 1970, 2331.2Sperry don't bother to include more than one location 2341.2Sperry even if subregions' clocks disagreed before 1970. 2351.2Sperry Otherwise these tables would become annoyingly large. 2361.2Sperry If a name is ambiguous, use a less ambiguous alternative; 2371.2Sperry e.g. many cities are named San Jose and Georgetown, so 2381.2Sperry prefer `Costa_Rica' to `San_Jose' and `Guyana' to `Georgetown'. 2391.2Sperry Keep locations compact. Use cities or small islands, not countries 2401.2Sperry or regions, so that any future time zone changes do not split 2411.2Sperry locations into different time zones. E.g. prefer `Paris' 2421.2Sperry to `France', since France has had multiple time zones. 2431.6Skleink Use mainstream English spelling, e.g. prefer `Rome' to `Roma', and 2441.2Sperry prefer `Athens' to the true name (which uses Greek letters). 2451.6Skleink The POSIX file name restrictions encourage this rule. 2461.2Sperry Use the most populous among locations in a country's time zone, 2471.2Sperry e.g. prefer `Shanghai' to `Beijing'. Among locations with 2481.2Sperry similar populations, pick the best-known location, 2491.2Sperry e.g. prefer `Rome' to `Milan'. 2501.2Sperry Use the singular form, e.g. prefer `Canary' to `Canaries'. 2511.2Sperry Omit common suffixes like `_Islands' and `_City', unless that 2521.2Sperry would lead to ambiguity. E.g. prefer `Cayman' to 2531.2Sperry `Cayman_Islands' and `Guatemala' to `Guatemala_City', 2541.2Sperry but prefer `Mexico_City' to `Mexico' because the country 2551.2Sperry of Mexico has several time zones. 2561.2Sperry Use `_' to represent a space. 2571.2Sperry Omit `.' from abbreviations in names, e.g. prefer `St_Helena' 2581.2Sperry to `St._Helena'. 2591.5Skleink Do not change established names if they only marginally 2601.5Skleink violate the above rules. For example, don't change 2611.5Skleink the existing name `Rome' to `Milan' merely because 2621.5Skleink Milan's population has grown to be somewhat greater 2631.5Skleink than Rome's. 2641.5Skleink If a name is changed, put its old spelling in the `backward' file. 2651.2Sperry 2661.2SperryThe file `zone.tab' lists the geographical locations used to name 2671.2Sperrytime zone rule files. 2681.2Sperry 2691.2SperryOlder versions of this package used a different naming scheme, 2701.2Sperryand these older names are still supported. 2711.5SkleinkSee the file `backward' for most of these older names 2721.2Sperry(e.g. `US/Eastern' instead of `America/New_York'). 2731.2SperryThe other old-fashioned names still supported are 2741.2Sperry`WET', `CET', `MET', `EET' (see the file `europe'), 2751.2Sperryand `Factory' (see the file `factory'). 2761.2Sperry 2771.2Sperry 2781.2Sperry----- Time zone abbreviations ----- 2791.2Sperry 2801.2SperryWhen this package is installed, it generates time zone abbreviations 2811.2Sperrylike `EST' to be compatible with human tradition and POSIX.1. 2821.2SperryHere are the general rules used for choosing time zone abbreviations, 2831.2Sperryin decreasing order of importance: 2841.2Sperry 2851.6Skleink Use abbreviations that consist of three or more ASCII letters. 2861.2Sperry Previous editions of this database also used characters like 2871.2Sperry ' ' and '?', but these characters have a special meaning to 2881.2Sperry the shell and cause commands like 2891.2Sperry set `date` 2901.6Skleink to have unexpected effects. 2911.6Skleink Previous editions of this rule required upper-case letters, 2921.6Skleink but the Congressman who introduced Chamorro Standard Time 2931.6Skleink preferred "ChST", so the rule has been relaxed. 2941.6Skleink 2951.6Skleink This rule guarantees that all abbreviations could have 2961.6Skleink been specified by a POSIX.1 TZ string. POSIX.1 2971.6Skleink requires at least three characters for an 2981.6Skleink abbreviation. POSIX.1-1996 says that an abbreviation 2991.6Skleink cannot start with ':', and cannot contain ',', '-', 3001.6Skleink '+', NUL, or a digit. Draft 7 of POSIX 1003.1-200x 3011.6Skleink changes this rule to say that an abbreviation can 3021.6Skleink contain only '-', '+', and alphanumeric characters in 3031.6Skleink the current locale. To be portable to both sets of 3041.6Skleink rules, an abbreviation must therefore use only ASCII 3051.6Skleink letters, as these are the only letters that are 3061.6Skleink alphabetic in all locales. 3071.6Skleink 3081.2Sperry Use abbreviations that are in common use among English-speakers, 3091.2Sperry e.g. `EST' for Eastern Standard Time in North America. 3101.2Sperry We assume that applications translate them to other languages 3111.2Sperry as part of the normal localization process; for example, 3121.2Sperry a French application might translate `EST' to `HNE'. 3131.6Skleink 3141.2Sperry For zones whose times are taken from a city's longitude, use the 3151.2Sperry traditional xMT notation, e.g. `PMT' for Paris Mean Time. 3161.2Sperry The only name like this in current use is `GMT'. 3171.6Skleink 3181.2Sperry If there is no common English abbreviation, abbreviate the English 3191.2Sperry translation of the usual phrase used by native speakers. 3201.2Sperry If this is not available or is a phrase mentioning the country 3211.2Sperry (e.g. ``Cape Verde Time''), then: 3221.2Sperry 3231.2Sperry When a country has a single or principal time zone region, 3241.2Sperry append `T' to the country's ISO code, e.g. `CVT' for 3251.2Sperry Cape Verde Time. For summer time append `ST'; 3261.2Sperry for double summer time append `DST'; etc. 3271.2Sperry When a country has multiple time zones, take the first three 3281.2Sperry letters of an English place name identifying each zone 3291.2Sperry and then append `T', `ST', etc. as before; 3301.2Sperry e.g. `VLAST' for VLAdivostok Summer Time. 3311.2Sperry 3321.6Skleink Use "zzz" for locations while uninhabited. The mnemonic is that 3331.6Skleink these locations are, in some sense, asleep. 3341.6Skleink 3351.2SperryApplication writers should note that these abbreviations are ambiguous 3361.2Sperryin practice: e.g. `EST' has a different meaning in Australia than 3371.2Sperryit does in the United States. In new applications, it's often better 3381.3Sjtcto use numeric UTC offsets like `-0500' instead of time zone 3391.2Sperryabbreviations like `EST'; this avoids the ambiguity. 3401.4Skleink 3411.4Skleink 3421.4Skleink----- Calendrical issues ----- 3431.4Skleink 3441.4SkleinkCalendrical issues are a bit out of scope for a time zone database, 3451.4Skleinkbut they indicate the sort of problems that we would run into if we 3461.4Skleinkextended the time zone database further into the past. An excellent 3471.4Skleinkresource in this area is Nachum Dershowitz and Edward M. Reingold, 3481.4Skleink<a href="http://emr.cs.uiuc.edu/home/reingold/calendar-book/index.shtml"> 3491.4SkleinkCalendrical Calculations 3501.4Skleink</a>, Cambridge University Press (1997). Other information and 3511.4Skleinksources are given below. They sometimes disagree. 3521.4Skleink 3531.4Skleink 3541.4SkleinkFrance 3551.4Skleink 3561.4SkleinkGregorian calendar adopted 1582-12-20. 3571.4SkleinkFrench Revolutionary calendar used 1793-11-24 through 1805-12-31, 3581.4Skleinkand (in Paris only) 1871-05-06 through 1871-05-23. 3591.4Skleink 3601.4Skleink 3611.4SkleinkRussia 3621.4Skleink 3631.4SkleinkFrom Chris Carrier <72157.3334@CompuServe.COM> (1996-12-02): 3641.4SkleinkOn 1929-10-01 the Soviet Union instituted an ``Eternal Calendar'' 3651.4Skleinkwith 30-day months plus 5 holidays, with a 5-day week. 3661.4SkleinkOn 1931-12-01 it changed to a 6-day week; in 1934 it reverted to the 3671.4SkleinkGregorian calendar while retaining the 6-day week; on 1940-06-27 it 3681.4Skleinkreverted to the 7-day week. With the 6-day week the usual days 3691.4Skleinkoff were the 6th, 12th, 18th, 24th and 30th of the month. 3701.4Skleink(Source: Evitiar Zerubavel, _The Seven Day Circle_) 3711.4Skleink 3721.4Skleink 3731.4SkleinkMark Brader reported a similar story in "The Book of Calendars", edited 3741.4Skleinkby Frank Parise (1982, Facts on File, ISBN 0-8719-6467-8), page 377. But: 3751.4Skleink 3761.4SkleinkFrom: Petteri Sulonen (via Usenet) 3771.4SkleinkDate: 14 Jan 1999 00:00:00 GMT 3781.4SkleinkMessage-ID: <Petteri.Sulonen-1401991626030001@lapin-kulta.in.helsinki.fi> 3791.4Skleink 3801.4SkleinkIf your source is correct, how come documents between 1929 -- 1940 were 3811.4Skleinkstill dated using the conventional, Gregorian calendar? 3821.4Skleink 3831.4SkleinkI can post a scan of a document dated December 1, 1934, signed by 3841.4SkleinkYenukidze, the secretary, on behalf of Kalinin, the President of the 3851.4SkleinkExecutive Committee of the Supreme Soviet, if you like. 3861.4Skleink 3871.4Skleink 3881.4Skleink 3891.4SkleinkSweden (and Finland) 3901.4Skleink 3911.4SkleinkFrom: msb@sq.com (Mark Brader) 3921.4Skleink<a href="news:1996Jul6.012937.29190@sq.com"> 3931.4SkleinkSubject: Re: Gregorian reform -- a part of locale? 3941.4Skleink</a> 3951.4SkleinkDate: 1996-07-06 3961.4Skleink 3971.4SkleinkIn 1700, Denmark made the transition from Julian to Gregorian. Sweden 3981.4Skleinkdecided to *start* a transition in 1700 as well, but rather than have one of 3991.4Skleinkthose unsightly calendar gaps :-), they simply decreed that the next leap 4001.4Skleinkyear after 1696 would be in 1744 -- putting the whole country on a calendar 4011.4Skleinkdifferent from both Julian and Gregorian for a period of 40 years. 4021.4Skleink 4031.4SkleinkHowever, in 1704 something went wrong and the plan was not carried through; 4041.4Skleinkthey did, after all, have a leap year that year. And one in 1708. In 1712 4051.4Skleinkthey gave it up and went back to Julian, putting 30 days in February that 4061.4Skleinkyear!... 4071.4Skleink 4081.4SkleinkThen in 1753, Sweden made the transition to Gregorian in the usual manner, 4091.4Skleinkgetting there only 13 years behind the original schedule. 4101.4Skleink 4111.4Skleink(A previous posting of this story was challenged, and Swedish readers 4121.4Skleinkproduced the following references to support it: "Tiderakning och historia" 4131.4Skleinkby Natanael Beckman (1924) and "Tid, en bok om tiderakning och 4141.4Skleinkkalendervasen" by Lars-Olof Lode'n (no date was given).) 4151.4Skleink 4161.4Skleink 4171.4SkleinkGrotefend's data 4181.4Skleink 4191.4SkleinkFrom: "Michael Palmer" <mpalmer@netcom.com> [with one obvious typo fixed] 4201.4SkleinkSubject: Re: Gregorian Calendar (was Re: Another FHC related question 4211.4SkleinkNewsgroups: soc.genealogy.german 4221.4SkleinkDate: Tue, 9 Feb 1999 02:32:48 -800 4231.4SkleinkMessage-ID: <199902091032.CAA09644@netcom10.netcom.com> 4241.4Skleink 4251.6SkleinkThe following is a(n incomplete) listing, arranged chronologically, of 4261.6SkleinkEuropean states, with the date they converted from the Julian to the 4271.4SkleinkGregorian calendar: 4281.4Skleink 4291.4Skleink04/15 Oct 1582 - Italy (with exceptions), Spain, Portugal, Poland (Roman 4301.4Skleink Catholics and Danzig only) 4311.4Skleink09/20 Dec 1582 - France, Lorraine 4321.4Skleink 4331.4Skleink21 Dec 1582/ 4341.4Skleink 01 Jan 1583 - Holland, Brabant, Flanders, Hennegau 4351.4Skleink10/21 Feb 1583 - bishopric of Liege (L"uttich) 4361.4Skleink13/24 Feb 1583 - bishopric of Augsburg 4371.4Skleink04/15 Oct 1583 - electorate of Trier 4381.4Skleink05/16 Oct 1583 - Bavaria, bishoprics of Freising, Eichstedt, Regensburg, 4391.4Skleink Salzburg, Brixen 4401.4Skleink13/24 Oct 1583 - Austrian Oberelsass and Breisgau 4411.4Skleink20/31 Oct 1583 - bishopric of Basel 4421.4Skleink02/13 Nov 1583 - duchy of J"ulich-Berg 4431.4Skleink02/13 Nov 1583 - electorate and city of K"oln 4441.4Skleink04/15 Nov 1583 - bishopric of W"urzburg 4451.4Skleink11/22 Nov 1583 - electorate of Mainz 4461.4Skleink16/27 Nov 1583 - bishopric of Strassburg and the margraviate of Baden 4471.4Skleink17/28 Nov 1583 - bishopric of M"unster and duchy of Cleve 4481.4Skleink14/25 Dec 1583 - Steiermark 4491.4Skleink 4501.4Skleink06/17 Jan 1584 - Austria and Bohemia 4511.4Skleink11/22 Jan 1584 - Luzern, Uri, Schwyz, Zug, Freiburg, Solothurn 4521.4Skleink12/23 Jan 1584 - Silesia and the Lausitz 4531.4Skleink22 Jan/ 4541.4Skleink 02 Feb 1584 - Hungary (legally on 21 Oct 1587) 4551.4Skleink Jun 1584 - Unterwalden 4561.4Skleink01/12 Jul 1584 - duchy of Westfalen 4571.4Skleink 4581.4Skleink16/27 Jun 1585 - bishopric of Paderborn 4591.4Skleink 4601.4Skleink14/25 Dec 1590 - Transylvania 4611.4Skleink 4621.4Skleink22 Aug/ 4631.4Skleink 02 Sep 1612 - duchy of Prussia 4641.4Skleink 4651.4Skleink13/24 Dec 1614 - Pfalz-Neuburg 4661.4Skleink 4671.4Skleink 1617 - duchy of Kurland (reverted to the Julian calendar in 4681.4Skleink 1796) 4691.4Skleink 4701.4Skleink 1624 - bishopric of Osnabr"uck 4711.4Skleink 4721.4Skleink 1630 - bishopric of Minden 4731.4Skleink 4741.4Skleink15/26 Mar 1631 - bishopric of Hildesheim 4751.4Skleink 4761.4Skleink 1655 - Kanton Wallis 4771.4Skleink 4781.4Skleink05/16 Feb 1682 - city of Strassburg 4791.4Skleink 4801.4Skleink18 Feb/ 4811.4Skleink 01 Mar 1700 - Protestant Germany (including Swedish possessions in 4821.4Skleink Germany), Denmark, Norway 4831.4Skleink30 Jun/ 4841.4Skleink 12 Jul 1700 - Gelderland, Zutphen 4851.4Skleink10 Nov/ 4861.4Skleink 12 Dec 1700 - Utrecht, Overijssel 4871.4Skleink 4881.4Skleink31 Dec 1700/ 4891.4Skleink 12 Jan 1701 - Friesland, Groningen, Z"urich, Bern, Basel, Geneva, 4901.4Skleink Turgau, and Schaffhausen 4911.4Skleink 4921.4Skleink 1724 - Glarus, Appenzell, and the city of St. Gallen 4931.4Skleink 4941.4Skleink01 Jan 1750 - Pisa and Florence 4951.4Skleink 4961.4Skleink02/14 Sep 1752 - Great Britain 4971.4Skleink 4981.4Skleink17 Feb/ 4991.4Skleink 01 Mar 1753 - Sweden 5001.4Skleink 5011.4Skleink1760-1812 - Graub"unden 5021.4Skleink 5031.6SkleinkThe Russian empire (including Finland and the Baltic states) did not 5041.4Skleinkconvert to the Gregorian calendar until the Soviet revolution of 1917. 5051.4Skleink 5061.6SkleinkSource: H. Grotefend, _Taschenbuch der Zeitrechnung des deutschen 5071.6SkleinkMittelalters und der Neuzeit_, herausgegeben von Dr. O. Grotefend 5081.4Skleink(Hannover: Hahnsche Buchhandlung, 1941), pp. 26-28. 5091.8Skleink 5101.8Skleink 5111.8Skleink----- Time and time zones on Mars ----- 5121.8Skleink 5131.8SkleinkSome people have adjusted their work schedules to fit Mars time. 5141.8SkleinkDozens of special Mars watches were built for Jet Propulsion 5151.8SkleinkLaboratory workers who kept Mars time during the Mars Exploration 5161.8SkleinkRovers mission (2004). These timepieces look like normal Seikos and 5171.8SkleinkCitizens but use Mars seconds rather than terrestrial seconds. 5181.8Skleink 5191.8SkleinkA Mars solar day is called a "sol" and has a mean period equal to 5201.8Skleinkabout 24 hours 39 minutes 35.244 seconds in terrestrial time. It is 5211.8Skleinkdivided into a conventional 24-hour clock, so each Mars second equals 5221.8Skleinkabout 1.02749125 terrestrial seconds. 5231.8Skleink 5241.8SkleinkThe prime meridian of Mars goes through the center of the crater 5251.8SkleinkAiry-0, named in honor of the British astronomer who built the 5261.8SkleinkGreenwich telescope that defines Earth's prime meridian. Mean solar 5271.8Skleinktime on the Mars prime meridian is called Mars Coordinated Time (MTC). 5281.8Skleink 5291.8SkleinkEach landed mission on Mars has adopted a different reference for 5301.8Skleinksolar time keeping, so there is no real standard for Mars time zones. 5311.8SkleinkFor example, the Mars Exploration Rover project (2004) defined two 5321.8Skleinktime zones "Local Solar Time A" and "Local Solar Time B" for its two 5331.8Skleinkmissions, each zone designed so that its time equals local true solar 5341.8Skleinktime at approximately the middle of the nominal mission. Such a "time 5351.8Skleinkzone" is not particularly suited for any application other than the 5361.8Skleinkmission itself. 5371.8Skleink 5381.8SkleinkMany calendars have been proposed for Mars, but none have achieved 5391.8Skleinkwide acceptance. Astronomers often use Mars Sol Date (MSD) which is a 5401.8Skleinksequential count of Mars solar days elapsed since about 1873-12-29 5411.8Skleink12:00 GMT. 5421.8Skleink 5431.8SkleinkThe tz database does not currently support Mars time, but it is 5441.8Skleinkdocumented here in the hopes that support will be added eventually. 5451.8Skleink 5461.8SkleinkSources: 5471.8Skleink 5481.8SkleinkMichael Allison and Robert Schmunk, 5491.8Skleink"Technical Notes on Mars Solar Time as Adopted by the Mars24 Sunclock" 5501.8Skleink<http://www.giss.nasa.gov/tools/mars24/help/notes.html> (2004-03-15). 5511.8Skleink 5521.8SkleinkJia-Rui Chong, "Workdays Fit for a Martian", Los Angeles Times 5531.8Skleink(2004-01-14), pp A1, A20-A21. 554