changeset 5376:6c1cc3b6c74d

getdate support for TZ="foo", and documentation.
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 29 Oct 2004 21:01:18 +0000
parents 5e5a56e38e77
children 53fcb485b485
files ChangeLog doc/ChangeLog lib/ChangeLog
diffstat 3 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* modules/getdate (Files): Add doc/getdate.texi.
+	(Depends-on): Add setenv, xalloc.
+
 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
 
 	* modules/regex (lib_SOURCES): Add regex.c.
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* getdate.texi: New file, from coreutils with modifications for
+	the new TZ parsing.
+
 2004-02-23  Karl Berry  <karl@gnu.org>
 
 	* maintain.texi, standards.texi, make-stds.texi: new files
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,16 @@
+2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* getdate.y: Add support for TZ="foo" within a date string.
+	Fix some bugs near time_t boundaries.  Reject dates with
+	out-of-range components, e.g., "Sept 31".
+	Include <stdlib.h>, "setenv.h", "xalloc.h".
+	(ISDIGIT_LOCALE): Remove; unused.
+	Note that the TZ and time functions used here are not reentrant.
+	(mktime_ok, get_tz): New functions.
+	(TZBUFSIZE): New constant.
+	(get_date): Parse leading TZ="foo".  Reject out-of-range components;.
+	This requires that we sometimes generate our own TZ="XXX..." setting.
+
 2004-10-27  Derek R. Price  <derek@ximbiot.com>
 
 	* mktime.c (not_equal_tm): Remove redundant check.