Branch: Tag:

2014-08-28

2014-08-28 15:52:47 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Calendar: Improved dwim_time() for ISO-8601 dates.

Also adds some corresponding testsuite tests.

FIXME: Ought to have tests for all the patterns in dwim_{day,time}().

3257:    "%*[a-zA-Z.] %h"COLON"%m %z",    "%*[a-zA-Z.] %h"COLON"%m%z",    "%*[a-zA-Z.] %h"COLON"%m", -  "%*[a-zA-Z.] %h%*[ ]%p", }), +  "%*[a-zA-Z.] %h%*[ ]%p", +  "%t", +  }),    string todformat )    {   // werror("try: %O\n %O\n",