notmuch/parse-time-string
Jani Nikula 6aeef2ee15 parse-time-string: fix setting and rounding of seconds
If seconds are not specified in the string to be parsed, they're not
set according to the reference time (in the no rounding case) nor
rounded properly (in the rounding up cases). Fix this.

The bug caused searches such as date:10:30..10:30 to match messages
with date exactly 10:30:00 only, and not in range 10:30:00..10:30:59
(inclusive) as documented.

Note that date searches referring "noon" or "5pm" will still be
interpreted as exact to the second.
2015-03-07 10:20:33 +01:00
..
Makefile parse-time-string: add a date/time parser to notmuch 2012-10-31 16:42:29 -03:00
Makefile.local parse-time-string: add a date/time parser to notmuch 2012-10-31 16:42:29 -03:00
parse-time-string.c parse-time-string: fix setting and rounding of seconds 2015-03-07 10:20:33 +01:00
parse-time-string.h parse-time-string: add a date/time parser to notmuch 2012-10-31 16:42:29 -03:00
README parse-time-string: add a date/time parser to notmuch 2012-10-31 16:42:29 -03:00

PARSE TIME STRING
=================

parse_time_string() is a date/time parser originally written for
notmuch by Jani Nikula <jani@nikula.org>. However, there is nothing
notmuch specific in it, and it should be kept reusable for other
projects, and ready to be packaged on its own as needed. Please do not
add dependencies on or references to anything notmuch specific. The
parser should only depend on the C library.