This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.18-646-g0748546


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  0748546f660d27a2ad29fa6174d456e2f6490758 (commit)
       via  4480e934ccffa48c6ef60464ee00f00a363dcb56 (commit)
       via  69947401b9f3bd344a82ca81a7e12e4f1f58e91a (commit)
       via  674762d904ee94f57bef064951dadd2d095bc46e (commit)
      from  2fc6557eb89af08a6ca1129cd3cd9ddc62925e8b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=0748546f660d27a2ad29fa6174d456e2f6490758

commit 0748546f660d27a2ad29fa6174d456e2f6490758
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Wed Sep 18 13:15:12 2013 -0700

    Support TZ transition times < 00:00:00.
    
    This is needed for version-3 tz-format files; it supports time
    stamps past 2037 for America/Godthab (the only entry in the tz
    database for which this change is relevant).
    * manual/time.texi (TZ Variable): Document transition times
    from -167:59:59 through -00:00:01.
    * time/tzset.c (tz_rule): Time of day is now signed.
    (__tzset_parse_tz): Parse negative time of day.

diff --git a/ChangeLog b/ChangeLog
index 99588c6..de762a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
 
+	Support TZ transition times < 00:00:00.
+	This is needed for version-3 tz-format files; it supports time
+	stamps past 2037 for America/Godthab (the only entry in the tz
+	database for which this change is relevant).
+	* manual/time.texi (TZ Variable): Document transition times
+	from -167:59:59 through -00:00:01.
+	* time/tzset.c (tz_rule): Time of day is now signed.
+	(__tzset_parse_tz): Parse negative time of day.
+
 	Document TZ transition times >= 25:00:00.
 	* manual/time.texi (TZ Variable): Document transition times from
 	25:00:00 through 167:59:59.  These are already supported, and this
diff --git a/NEWS b/NEWS
index 9964445..7886834 100644
--- a/NEWS
+++ b/NEWS
@@ -170,6 +170,10 @@ Version 2.18
 * On Linux, the clock function now uses the clock_gettime system call
   for improved precision, rather than old times system call.
 
+* Added support for version-3 tz format files.  This is needed when using
+  the tz database release 2013e or later, and affects a few unusual cases --
+  currently only TZ='America/Godthab' for time stamps after 2037.
+
 * Added new API functions pthread_getattr_default_np and
   pthread_setattr_default_np to get and set the default pthread
   attributes of a process.
diff --git a/manual/time.texi b/manual/time.texi
index c65a73e..e7e8647 100644
--- a/manual/time.texi
+++ b/manual/time.texi
@@ -2087,7 +2087,7 @@ between @code{1} and @code{12}.
 The @var{time} fields specify when, in the local time currently in
 effect, the change to the other time occurs.  If omitted, the default is
 @code{02:00:00}.  The hours part of the time fields can range from
-0 through 167; this is an extension to POSIX.1, which allows
+@minus{}167 through 167; this is an extension to POSIX.1, which allows
 only the range 0 through 24.
 
 Here are some example @code{TZ} values, including the appropriate
@@ -2123,6 +2123,16 @@ is a placeholder.
 WART4WARST,J1/0,J365/25
 @end smallexample
 
+Western Greenland Time (WGT) and Western Greenland Summer Time (WGST)
+are 3 hours behind UTC in the winter.  Its clocks follow the European
+Union rules of springing forward by one hour on March's last Sunday at
+01:00 UTC (@minus{}02:00 local time) and falling back on October's
+last Sunday at 01:00 UTC (@minus{}01:00 local time).
+
+@smallexample
+WGT3WGST,M3.5.0/-2,M10.5.0/-1
+@end smallexample
+
 The schedule of Daylight Saving Time in any particular jurisdiction has
 changed over the years.  To be strictly correct, the conversion of dates
 and times in the past should be based on the schedule that was in effect
diff --git a/time/tzset.c b/time/tzset.c
index 4f8af8d..fb2dccd 100644
--- a/time/tzset.c
+++ b/time/tzset.c
@@ -54,7 +54,7 @@ typedef struct
     /* When to change.  */
     enum { J0, J1, M } type;	/* Interpretation of:  */
     unsigned short int m, n, d;	/* Month, week, day.  */
-    unsigned int secs;		/* Time of day.  */
+    int secs;			/* Time of day.  */
 
     long int offset;		/* Seconds east of GMT (west if < 0).  */
 
@@ -362,9 +362,12 @@ __tzset_parse_tz (tz)
       else if (*tz == '/')
 	{
 	  /* Get the time of day of the change.  */
+	  int negative;
 	  ++tz;
 	  if (*tz == '\0')
 	    goto out;
+	  negative = *tz == '-';
+	  tz += negative;
 	  consumed = 0;
 	  switch (sscanf (tz, "%hu%n:%hu%n:%hu%n",
 			  &hh, &consumed, &mm, &consumed, &ss, &consumed))
@@ -379,7 +382,7 @@ __tzset_parse_tz (tz)
 	      break;
 	    }
 	  tz += consumed;
-	  tzr->secs = (hh * 60 * 60) + (mm * 60) + ss;
+	  tzr->secs = (negative ? -1 : 1) * ((hh * 60 * 60) + (mm * 60) + ss);
 	}
       else
 	/* Default to 2:00 AM.  */

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4480e934ccffa48c6ef60464ee00f00a363dcb56

commit 4480e934ccffa48c6ef60464ee00f00a363dcb56
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Wed Sep 18 13:01:11 2013 -0700

    Document TZ transition times >= 25:00:00.
    
    * manual/time.texi (TZ Variable): Document transition times from
    25:00:00 through 167:59:59.  These are already supported, and this
    support will help with version-3 tz-format files.

diff --git a/ChangeLog b/ChangeLog
index d4529a1..99588c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
 
+	Document TZ transition times >= 25:00:00.
+	* manual/time.texi (TZ Variable): Document transition times from
+	25:00:00 through 167:59:59.  These are already supported, and this
+	support will help with version-3 tz-format files.
+
 	* manual/time.texi (TZ Variable): Modernize North America example
 	to reflect current (i.e., 2007-and-later) daylight saving rules.
 
diff --git a/manual/time.texi b/manual/time.texi
index 60dff77..c65a73e 100644
--- a/manual/time.texi
+++ b/manual/time.texi
@@ -2086,9 +2086,11 @@ between @code{1} and @code{12}.
 
 The @var{time} fields specify when, in the local time currently in
 effect, the change to the other time occurs.  If omitted, the default is
-@code{02:00:00}.
+@code{02:00:00}.  The hours part of the time fields can range from
+0 through 167; this is an extension to POSIX.1, which allows
+only the range 0 through 24.
 
-Here is an example @code{TZ} value, including the appropriate
+Here are some example @code{TZ} values, including the appropriate
 Daylight Saving Time and its dates of applicability.  In North
 American Eastern Standard Time (EST) and Eastern Daylight Time (EDT),
 the normal offset from UTC is 5 hours; since this is
@@ -2100,6 +2102,27 @@ at 2:00am.
 EST+5EDT,M3.2.0/2,M11.1.0/2
 @end smallexample
 
+Israel Standard Time (IST) and Israel Daylight Time (IDT) are 2 hours
+ahead of the prime meridian in winter, springing forward an hour on
+March's fourth Tuesday at 26:00 (i.e., 02:00 on the first Friday on or
+after March 23), and falling back on October's last Sunday at 02:00.
+
+@smallexample
+IST-2IDT,M3.4.4/26,M10.5.0
+@end smallexample
+
+Western Argentina Summer Time (WARST) is 3 hours behind the prime
+meridian all year.  There is a dummy fall-back transition on December
+31 at 25:00 daylight saving time (i.e., 24:00 standard time,
+equivalent to January 1 at 00:00 standard time), and a simultaneous
+spring-forward transition on January 1 at 00:00 standard time, so
+daylight saving time is in effect all year and the initial @code{WART}
+is a placeholder.
+
+@smallexample
+WART4WARST,J1/0,J365/25
+@end smallexample
+
 The schedule of Daylight Saving Time in any particular jurisdiction has
 changed over the years.  To be strictly correct, the conversion of dates
 and times in the past should be based on the schedule that was in effect

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=69947401b9f3bd344a82ca81a7e12e4f1f58e91a

commit 69947401b9f3bd344a82ca81a7e12e4f1f58e91a
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Wed Sep 18 12:58:13 2013 -0700

    * manual/time.texi (TZ Variable): Modernize North America example
    
    to reflect current (i.e., 2007-and-later) daylight saving rules.

diff --git a/ChangeLog b/ChangeLog
index cbf2485..d4529a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
 
+	* manual/time.texi (TZ Variable): Modernize North America example
+	to reflect current (i.e., 2007-and-later) daylight saving rules.
+
 	* manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
 
 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
diff --git a/manual/time.texi b/manual/time.texi
index 2b27154..60dff77 100644
--- a/manual/time.texi
+++ b/manual/time.texi
@@ -2088,15 +2088,16 @@ The @var{time} fields specify when, in the local time currently in
 effect, the change to the other time occurs.  If omitted, the default is
 @code{02:00:00}.
 
-For example, here is how you would specify the Eastern time zone in the
-United States, including the appropriate Daylight Saving Time and its dates
-of applicability.  The normal offset from UTC is 5 hours; since this is
+Here is an example @code{TZ} value, including the appropriate
+Daylight Saving Time and its dates of applicability.  In North
+American Eastern Standard Time (EST) and Eastern Daylight Time (EDT),
+the normal offset from UTC is 5 hours; since this is
 west of the prime meridian, the sign is positive.  Summer time begins on
-the first Sunday in April at 2:00am, and ends on the last Sunday in October
+March's second Sunday at 2:00am, and ends on November's first Sunday
 at 2:00am.
 
 @smallexample
-EST+5EDT,M4.1.0/2,M10.5.0/2
+EST+5EDT,M3.2.0/2,M11.1.0/2
 @end smallexample
 
 The schedule of Daylight Saving Time in any particular jurisdiction has

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=674762d904ee94f57bef064951dadd2d095bc46e

commit 674762d904ee94f57bef064951dadd2d095bc46e
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Wed Sep 18 12:54:53 2013 -0700

    * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.

diff --git a/ChangeLog b/ChangeLog
index 6e8b99f..cbf2485 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
+
 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
 
 	* sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
diff --git a/manual/time.texi b/manual/time.texi
index 1a5aaed..2b27154 100644
--- a/manual/time.texi
+++ b/manual/time.texi
@@ -2041,7 +2041,7 @@ to get a Coordinated Universal Time value.  It has syntax like
 [@code{+}|@code{-}]@var{hh}[@code{:}@var{mm}[@code{:}@var{ss}]].  This
 is positive if the local time zone is west of the Prime Meridian and
 negative if it is east.  The hour must be between @code{0} and
-@code{23}, and the minute and seconds between @code{0} and @code{59}.
+@code{24}, and the minute and seconds between @code{0} and @code{59}.
 
 For example, here is how we would specify Eastern Standard Time, but
 without any Daylight Saving Time alternative:

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog        |   21 +++++++++++++++++++++
 NEWS             |    4 ++++
 manual/time.texi |   50 ++++++++++++++++++++++++++++++++++++++++++--------
 time/tzset.c     |    7 +++++--
 4 files changed, 72 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]