summaryrefslogtreecommitdiff
path: root/doc/parse-datetime.texi
Commit message (Collapse)AuthorAgeFilesLines
* Warn against bogus TZ settingsPaul Eggert2023-05-071-0/+3
| | | | | * doc/parse-datetime.texi (Specifying time zone rules): Warn against TZ="UTC=5".
* maint: run 'make update-copyright'Simon Josefsson2023-01-011-1/+1
|
* parse-datetime: improve doc formatting, timelinessPaul Eggert2022-11-141-39/+39
| | | | | | * doc/parse-datetime.texi: Use @samp and @code in menus for consistenty with how the Coreutils manual will do this sort of thing. Update examples to this year.
* * doc/parse-datetime.texi: Tweak wording again.Paul Eggert2022-07-131-7/+10
|
* parse-datetime: improve doc for TZ="<-07>7" etc.Paul Eggert2022-07-121-3/+21
| | | | | * doc/parse-datetime.texi (Specifying time zone rules): Give examples of POSIX TZ strings that specify UTC offsets (Bug#56524).
* parse-datetime: support 'J' military time zonePaul Eggert2022-05-171-1/+1
| | | | | | | | | | Requested by Brian Inglis in: https://savannah.gnu.org/support/?110644 * lib/parse-datetime.y (parser_control): New member J_zones_seen. (item): New item 'J'. (military_table): Add 'J'. (parse_datetime_body): Set and use J_zones_seen. * tests/test-parse-datetime.c (main): Test "J".
* maint: run 'make update-copyright'Paul Eggert2022-01-011-1/+1
|
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* parse-datetime: modernize docPaul Eggert2020-07-241-49/+48
| | | | | | * doc/parse-datetime.texi: Use more-current examples. Don’t lead with 32-bit time_t, as it’s on its way out. Capitalize “Epoch” to be consistent with POSIX.
* doc: Update license notices.Bruno Haible2020-01-181-3/+2
| | | | | * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by reference to a section or to a "file as part of this distribution".
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* Update some URLsPaul Eggert2019-09-221-2/+2
| | | | | | This is a clerical change that mostly changes http: to https: in URLs where either will work. It also updates some URLs that have moved, removes some URLs that no longer work, and fixes related text.
* parse-datetime: fix military timezone lettersPaul Eggert2019-08-091-1/+3
| | | | | | | Problem and trivial fix reported by Neil Hoggarth in: https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html * lib/parse-datetime.y (military_table): Do it the right way, not the RFC 822 way.
* maint: Run 'make update-copyright'Paul Eggert2019-01-011-1/+1
|
* maint: Run 'make update-copyright'Paul Eggert2018-01-011-1/+1
|
* maint: time stamp -> timestampPaul Eggert2017-01-091-4/+4
| | | | Use the spelling "timestamp", as that is what POSIX uses.
* version-etc: new yearPaul Eggert2017-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* version-etc: new yearPaul Eggert2016-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* doc: use extended timezone format in iso-8601 examplePádraig Brady2015-10-301-2/+2
| | | | | | * doc/parse-datetime.texi: The standard states that extended format (separated with ':') is to be used consistently throughout. Note that lib/parse-datetime.y can handle either tz format.
* doc: update FDL template to match FDL examples.Simon Josefsson2015-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * doc/alloca-opt.texi: * doc/alloca.texi: * doc/c-ctype.texi: * doc/c-strcase.texi: * doc/c-strcaseeq.texi: * doc/c-strcasestr.texi: * doc/c-strstr.texi: * doc/c-strtod.texi: * doc/c-strtold.texi: * doc/ctime.texi: * doc/error.texi: * doc/gcd.texi: * doc/gnulib-tool.texi: * doc/inet_ntoa.texi: * doc/intprops.texi: * doc/lib-symbol-visibility.texi: * doc/maintain.texi: * doc/parse-datetime.texi: * doc/quote.texi: * doc/regexprops-generic.texi: * doc/standards.texi: Remove spurious 'with' in FDL license template.
* version-etc: new yearPaul Eggert2014-12-311-1/+1
| | | | | | * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date. * all files: Run 'make update-copyright'.
* maint: update copyrightEric Blake2014-01-011-1/+1
| | | | | | I ran 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
* doc: improve ISO 8601 discussionPaul Eggert2013-01-061-15/+18
| | | | | | * doc/parse-datetime.texi (Combined date and time of day items): Specify more carefully what formats are supported and what is done with excess precision.
* doc: avoid small capsPaul Eggert2013-01-051-21/+21
| | | | | | * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps; they're more trouble than they're worth. Suggested by Karl Berry in <http://bugs.gnu.org/13360>.
* maint: update all copyright year number rangesEric Blake2013-01-011-1/+1
| | | | | | Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
* Hyphen and dash fixes.Paul Eggert2012-12-271-1/+1
|
* doc: do not use @acronymPaul Eggert2012-08-241-12/+12
| | | | | | | | | * doc/inet_ntoa.texi (inet_ntoa): * doc/parse-datetime.texi (Seconds since the Epoch) (Specifying time zone rules): * doc/posix-functions/inet_ntoa.texi (inet_ntoa): Don't use @acronym. Problem reported by John Darlington in <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
* parse-datetime: doc tuneupPaul Eggert2012-07-061-3/+6
| | | | | * doc/parse-datetime.texi: Index "leap seconds" and fix minor spacing issues.
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* parse-datetime: document the newly accepted formatJ.T. Conklin2011-09-061-0/+25
| | | | | * doc/parse-datetime.texi (Combined date and time of day items): New section.
* parse-datetime: accept ISO 8601 date and time rep with "T" separatorJ.T. Conklin2011-08-311-2/+2
| | | | | | | | | | | | | | | | | | | The parser now accepts ISO 8601 date-time strings with "T" as the separator. It has long parsed dates like "2004-02-29 16:21:42" with a space between the date and time strings. Now it also parses "2004-02-29T16:21:42" and fractional-second and time-zone-annotated variants like "2004-02-29T16:21:42.333-07:00" * lib/parse-datetime.y: Parse ISO 8601 extended date and time of day representation using the 'T' separator character. * doc/parse-datetime.texi (General date syntax): replace use of deprecated --iso-8601 option with --rfc-3339 in example of date command output formats that can be parsed. * tests/test-parse-datetime.c (tm_diff): New function, taken from lib/parse-datetime.y. (gmt_offset): New function. (main): Add additional test cases to validate ISO8601 extended date and time of day format parsing.
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-2/+1
| | | | Run the new "make update-copyright" rule.
* docs: update parse-datetime historyEric Blake2010-10-071-4/+8
| | | | | | | * doc/parse-datetime.texi (Authors of parse_datetime): Better documentation of this function's history and alternatives. Signed-off-by: Eric Blake <eblake@redhat.com>
* parse-datetime: do some more renamingPaul Eggert2010-10-051-2/+3
| | | | | | | | * doc/parse-datetime.texi (Authors of parse_datetime): Call it parse_datetime, not get_date. Mention the renaming. * lib/parse-datetime.y: Call it parse_datetime, not getdate, in comments. * m4/bison.m4: Likewise.
* parse-datetime: better name than get_dateEric Blake2010-10-051-0/+559
* NEWS: Reword the deprecation notice. * modules/get_date: Rename to modules/parse-datetime. * modules/get_date-tests: Rename to modules/parse-datetime-tests. * m4/get_date.m4: Rename to m4/parse-datetime.m4. * lib/get_date.y: Rename to lib/parse-datetime.y. * tests/test-get_date.c: Rename to tests/test-parse-datetime.c. * doc/get_date.texi: Rename to doc/parse-datetime.texi. * doc/getdate.texi: Provide fallback wrapper. * lib/getdate.h: Move guts, and wrap... * lib/parse-datetime.h: ...new file. * lib/parse-datetime.y (get_date): Rename... (parse_datetime): ...to this. * m4/parse-datetime.m4 (gl_GET_DATE): Rename... (gl_PARSE_DATETIME): ...to this. * doc/posix-functions/getdate.texi (get_date): Provide fallback documentation. * modules/getdate (Files): Provide fallback docs and header. (Notice, Depends-on): Update references. * tests/test-parse-datetime.c: Likewise. * DEPENDENCIES: Likewise. * MODULES.html.sh (Date and time <time.h>): Likewise. * doc/parse-datetime.texi (Date input formats) (Authors of parse_datetime): Likewise. * modules/parse-datetime (Files, configure.ac, Makefile.am) (Include): Likewise. * modules/parse-datetime-tests (Files, Makefile.am): Likewise. * gnulib-tool: Likewise. * m4/bison.m4 (gl_BISON): Likewise. Suggested by Bruno Haible. Signed-off-by: Eric Blake <eblake@redhat.com>