From decad9103eab4c5f24dbc55dc7d2cdabce87a302 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 23 Nov 2012 22:20:15 +0100 Subject: util: teach parse_timestamp() to parse results of format_timestamp_relative() --- src/test/test-date.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/test/test-date.c') diff --git a/src/test/test-date.c b/src/test/test-date.c index 57f8b371d3..7e14d196c6 100644 --- a/src/test/test-date.c +++ b/src/test/test-date.c @@ -65,5 +65,8 @@ int main(int argc, char *argv[]) { assert_se(parse_timestamp("+2y 4d", &t) >= 0); log_info("%s", format_timestamp(buf, sizeof(buf), t)); + assert_se(parse_timestamp("5months ago", &t) >= 0); + log_info("%s", format_timestamp(buf, sizeof(buf), t)); + return 0; } -- cgit v1.2.3-54-g00ecf