From: Thomas Weißschuh Date: Sun, 24 Sep 2023 21:14:34 +0000 (+0200) Subject: lib/timeutils: test epoch timestamp X-Git-Tag: v2.40-rc1~230^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d31644aecc3a05c2647d5de5721e09a322b2562;p=thirdparty%2Futil-linux.git lib/timeutils: test epoch timestamp Signed-off-by: Thomas Weißschuh --- diff --git a/lib/timeutils.c b/lib/timeutils.c index 8f9c8e9be8..e93b4f7d32 100644 --- a/lib/timeutils.c +++ b/lib/timeutils.c @@ -707,6 +707,7 @@ static int run_unittest_timestamp(void) { "2012-09-22 16:34:22.012", 1348331662012000 }, { "@1348331662" , 1348331662000000 }, { "@1348331662.234567" , 1348331662234567 }, + { "@0" , 0 }, { "2012-09-22 16:34" , 1348331640000000 }, { "2012-09-22" , 1348272000000000 }, { "16:34:22" , 1674232462000000 },