Add support for TZ="foo" within a date string.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Oct 2004 20:59:53 +0000 (20:59 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Oct 2004 20:59:53 +0000 (20:59 +0000)
commitde95bdc2790c1c230c09bc6d3f626fcac9d145f0
treec3de1cf63ec1d79b04abdefa8595e4023130a80e
parent8912e6d4dccc2f3b7d125229ef9ee05dda1f36ed
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.
lib/getdate.y