]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/timeutils: test epoch timestamp
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 24 Sep 2023 21:14:34 +0000 (23:14 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 24 Sep 2023 21:14:34 +0000 (23:14 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
lib/timeutils.c

index 8f9c8e9be82fd5a7e24be6320d69e276c44a0074..e93b4f7d322a994576f3356ab855126f0972fafe 100644 (file)
@@ -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 },