commit 7ef03c90217b adds support for the gnulib get_date module to
pcplib/rtime.c::__pmParseTime. First it tries the existing mechanism.
If that fails it tries gnulib get_date. Here is an example from the
testcase which shows example datetimes and how the start/end times are
adjusted. No doc changes yet but the date command uses the gnulib
get_date support and documents it in
info date 'date input'
QA output created by 751
"start " 2014-02-17 10:08:50
"end " 2014-02-27 11:28:50
"Mon Feb 19 11:45:50 2014 " 2014-02-19 11:45:50
"+1minute" 2014-02-17 10:09:50
"-1minute" 2014-02-27 11:27:50
"2014-02-19" 2014-02-19 00:00:00
"02/19/14" 2014-02-19 00:00:00
"02/19/14 11:45:50 AM" 2014-02-19 11:45:50
"02/19/14 11:45" 2014-02-19 11:45:00
"02/19/14 11:45:50" 2014-02-19 11:45:50
"19 Feb 2014 11:45:50" 2014-02-19 11:45:50
"yesterday" 2014-02-26 11:28:50
"next day" 2014-02-18 10:08:50
"1 day ago" 2014-02-26 11:28:50
"1 week ago" 2014-02-20 11:28:50
"@2014-02-19" 2014-02-19 00:00:00
"@02/19/14" 2014-02-19 00:00:00
"@02/19/14 11:45:50 AM" 2014-02-19 11:45:50
"@02/19/14 11:45" 2014-02-19 11:45:00
"@02/19/14 11:45:50" 2014-02-19 11:45:50
"@19 Feb 2014 11:45:50" 2014-02-19 11:45:50
"@yesterday" 2014-02-26 11:28:50
"@next day" 2014-02-18 10:08:50
"@1 day ago" 2014-02-26 11:28:50
"1 day" 2014-02-18 10:08:50
"5 minutes 5 seconds" 2014-02-17 10:13:55
|