Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/time Merge tzcode2004a.



details:   https://anonhg.NetBSD.org/src/rev/b4dbfd62d47a
branches:  trunk
changeset: 567015:b4dbfd62d47a
user:      kleink <kleink%NetBSD.org@localhost>
date:      Thu May 27 20:39:49 2004 +0000

description:
Merge tzcode2004a.

diffstat:

 lib/libc/time/Theory      |  50 +++++++++++++++++++++++++++++++++++++++++++++-
 lib/libc/time/tz-link.htm |  27 ++++++++++++++++++++----
 lib/libc/time/zic.c       |  10 ++++----
 3 files changed, 75 insertions(+), 12 deletions(-)

diffs (178 lines):

diff -r c68623405108 -r b4dbfd62d47a lib/libc/time/Theory
--- a/lib/libc/time/Theory      Thu May 27 20:33:31 2004 +0000
+++ b/lib/libc/time/Theory      Thu May 27 20:39:49 2004 +0000
@@ -1,5 +1,5 @@
-#      $NetBSD: Theory,v 1.7 2003/12/20 00:12:05 kleink Exp $
-@(#)Theory     7.14
+#      $NetBSD: Theory,v 1.8 2004/05/27 20:39:49 kleink Exp $
+@(#)Theory     7.15
 
 
 ----- Outline -----
@@ -8,6 +8,7 @@
        Names of time zone regions
        Time zone abbreviations
        Calendrical issues
+       Time and time zones on Mars
 
 
 ----- Time and date functions -----
@@ -505,3 +506,48 @@
 Source:  H. Grotefend, _Taschenbuch der Zeitrechnung des deutschen
 Mittelalters und der Neuzeit_, herausgegeben von Dr. O. Grotefend
 (Hannover:  Hahnsche Buchhandlung, 1941), pp. 26-28.
+
+
+----- Time and time zones on Mars -----
+
+Some people have adjusted their work schedules to fit Mars time.
+Dozens of special Mars watches were built for Jet Propulsion
+Laboratory workers who kept Mars time during the Mars Exploration
+Rovers mission (2004).  These timepieces look like normal Seikos and
+Citizens but use Mars seconds rather than terrestrial seconds.
+
+A Mars solar day is called a "sol" and has a mean period equal to
+about 24 hours 39 minutes 35.244 seconds in terrestrial time.  It is
+divided into a conventional 24-hour clock, so each Mars second equals
+about 1.02749125 terrestrial seconds.
+
+The prime meridian of Mars goes through the center of the crater
+Airy-0, named in honor of the British astronomer who built the
+Greenwich telescope that defines Earth's prime meridian.  Mean solar
+time on the Mars prime meridian is called Mars Coordinated Time (MTC).
+
+Each landed mission on Mars has adopted a different reference for
+solar time keeping, so there is no real standard for Mars time zones.
+For example, the Mars Exploration Rover project (2004) defined two
+time zones "Local Solar Time A" and "Local Solar Time B" for its two
+missions, each zone designed so that its time equals local true solar
+time at approximately the middle of the nominal mission.  Such a "time
+zone" is not particularly suited for any application other than the
+mission itself.
+
+Many calendars have been proposed for Mars, but none have achieved
+wide acceptance.  Astronomers often use Mars Sol Date (MSD) which is a
+sequential count of Mars solar days elapsed since about 1873-12-29
+12:00 GMT.
+
+The tz database does not currently support Mars time, but it is
+documented here in the hopes that support will be added eventually.
+
+Sources:
+
+Michael Allison and Robert Schmunk,
+"Technical Notes on Mars Solar Time as Adopted by the Mars24 Sunclock"
+<http://www.giss.nasa.gov/tools/mars24/help/notes.html> (2004-03-15).
+
+Jia-Rui Chong, "Workdays Fit for a Martian", Los Angeles Times
+(2004-01-14), pp A1, A20-A21.
diff -r c68623405108 -r b4dbfd62d47a lib/libc/time/tz-link.htm
--- a/lib/libc/time/tz-link.htm Thu May 27 20:33:31 2004 +0000
+++ b/lib/libc/time/tz-link.htm Thu May 27 20:39:49 2004 +0000
@@ -9,7 +9,7 @@
 <meta http-equiv="Content-type" content='text/html; charset="US-ASCII"' />
 <meta name="DC.Creator" content="Eggert, Paul" />
 <meta name="DC.Contributor" content="Olson, Arthur David" />
-<meta name="DC.Date" content="2003-09-21" />
+<meta name="DC.Date" content="2004-05-24" />
 <meta name="DC.Description"
  content="Sources of information about time zones and daylight saving time" />
 <meta name="DC.Identifier" content="http://www.twinsun.com/tz/tz-link.htm"; />
@@ -19,7 +19,7 @@
 <body>
 <h1>Sources for Time Zone and Daylight Saving Time Data</h1>
 <address>
-@(#)tz-link.htm        7.41
+@(#)tz-link.htm        7.42
 </address>
 <p>
 Please send corrections to this web page to the
@@ -99,8 +99,8 @@
 </p>
 <h2>Web pages using recent versions of the <code>tz</code> database</h2>
 <ul>
-<li><a href="http://www.bsdi.com/date/";>Date and Time Gateway</a> is a
-text-based point-and-click interface to tables of current time
+<li><a href="http://twiki.org/cgi-bin/xtra/tzdate";>Date and Time Gateway</a>
+is a text-based point-and-click interface to tables of current time
 throughout the world.</li>
 <li>Fancier web interfaces, roughly in ascending order of complexity, include:
 <ul>
@@ -157,6 +157,15 @@
 License</a>. DateTime::TimeZone also contains a script
 <code>tests_from_zdump</code> that generates test cases for each clock
 transition in the <code>tz</code> database.</li>
+<li><a href="http://oss.software.ibm.com/icu/";>International Components for
+Unicode (ICU)</a> contains a C/C++ library for internationalization that
+has a compiler from <samp>tz</samp> source into an ICU-specific format.
+ICU is freely available under a BSD-style license.</li>
+<li><a href="http://joda-time.sourceforge.net/";>Joda Time - Java date
+and time API</a> contains a class
+<code>org.joda.time.tz.ZoneInfoCompiler</code> that compiles
+<code>tz</code> source into a Joda-specific binary format. Joda Time
+is freely available under a BSD-style license.</li>
 </ul>
 <h2>Other <code>tz</code> binary file readers</h2>
 <ul>
@@ -177,6 +186,9 @@
 </ul>
 <h2>Other <code>tz</code>-based time zone conversion software</h2>
 <ul>
+<li><a href="http://java.sun.com/";>Sun Java</a> releases since 1.4
+contain a copy of a recent <samp>tz</samp> database in a Java-specific
+format.</li>
 <li><a
 href="http://www1.tip.nl/~t876506/AboutTimeZonesHC.html";>HyperCard
 time zones calculator</a> is a HyperCard stack.</li>
@@ -330,7 +342,7 @@
 history of legal time in Singapore and Malaysia.</dd>
 <dt>United Kingdom</dt>
 <dd><a
-href="http://student.cusu.cam.ac.uk/~jsm28/british-time/";>History of
+href="http://www.srcf.ucam.org/~jsm28/british-time/";>History of
 legal time in Britain</a> discusses in detail the country
 with perhaps the best-documented history of clock adjustments.
 The National Physical Laboratory also maintains an <a
@@ -362,6 +374,11 @@
 Space Flight - Reference Systems - Time Conventions</a>
 briefly explains interplanetary space flight timekeeping.</li>
 <li><a
+href="http://www.giss.nasa.gov/tools/mars24/help/notes.html";>Technical
+Notes on Mars Solar Time as Adopted by the Mars24 Sunclock</a> briefly
+describes Mars Coordinated Time (MTC) and the diverse local time
+scales used by each landed mission on Mars.</li>
+<li><a
 href="http://hpiers.obspm.fr/eop-pc/products/bulletins/bulletins.html";>Bulletins
 maintained by the IERS EOP (PC)</a> contains official publications of
 the Earth Orientation Parameters Product Center of the
diff -r c68623405108 -r b4dbfd62d47a lib/libc/time/zic.c
--- a/lib/libc/time/zic.c       Thu May 27 20:33:31 2004 +0000
+++ b/lib/libc/time/zic.c       Thu May 27 20:39:49 2004 +0000
@@ -1,13 +1,13 @@
-/*     $NetBSD: zic.c,v 1.22 2003/12/20 00:21:00 kleink Exp $  */
+/*     $NetBSD: zic.c,v 1.23 2004/05/27 20:39:49 kleink Exp $  */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #ifndef NOID
-__RCSID("$NetBSD: zic.c,v 1.22 2003/12/20 00:21:00 kleink Exp $");
+__RCSID("$NetBSD: zic.c,v 1.23 2004/05/27 20:39:49 kleink Exp $");
 #endif /* !defined NOID */
 #endif /* !defined lint */
 
-static char    elsieid[] = "@(#)zic.c  7.115";
+static char    elsieid[] = "@(#)zic.c  7.116";
 
 #include "private.h"
 #include "locale.h"
@@ -2158,8 +2158,8 @@
                                --i;
                        }
                if (i < 0 || i >= len_months[isleap(y)][m]) {
-                       error(_("no day in month matches rule"));
-                       (void) exit(EXIT_FAILURE);
+                       if (noise)
+                               warning(_("rule goes past start/end of month--will not work with pre-2004 versions of zic"));
                }
        }
        if (dayoff < 0 && !TYPE_SIGNED(time_t))



Home | Main Index | Thread Index | Old Index