X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/f03c5a86c8c9b1f03d8ced522597c9a9844002b4..49e57291d78de2b583d6f2197ae6f9d9ff05e456:/lib/dateparse.c diff --git a/lib/dateparse.c b/lib/dateparse.c index 45de40c..f390d0c 100644 --- a/lib/dateparse.c +++ b/lib/dateparse.c @@ -22,8 +22,7 @@ * @brief Date parsing */ -#include -#include "types.h" +#include "common.h" #include @@ -39,6 +38,9 @@ static const char *const datemsk[] = { /* ISO format */ "%Y-%m-%d %H:%M:%S", + /* Generic time, same day */ + "%H:%M:%S", + "%H:%M", /* "%Y-%m-%d %H:%M:%S %Z" - no, not sensibly supported anywhere */ /* Locale-specific date + time */ "%c", @@ -46,9 +48,6 @@ static const char *const datemsk[] = { /* Locale-specific time, same day */ "%X", "%EX", - /* Generic time, same day */ - "%H:%M", - "%H:%M:%S", NULL, };