]> git.ipfire.org Git - oddments/collecty.git/commitdiff
time: Parse weeks
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Oct 2025 15:54:53 +0000 (15:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Oct 2025 15:54:53 +0000 (15:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/time.c

index e88f86ec8b751ba70375158a281ae40607829e96..8a3e8d57221fcb0d454b244d4cbd34c86d474aa8 100644 (file)
@@ -47,6 +47,9 @@ static int find_multiplier(char** p) {
                { "days",    3600 * 24 },
                { "day",     3600 * 24 },
                { "d",       3600 * 24 },
+               { "weeks",   3600 * 24 * 7 },
+               { "week",    3600 * 24 * 7 },
+               { "w",       3600 * 24 * 7 },
                { "months",  3600 * 24 * 30 },
                { "month",   3600 * 24 * 30 },
                { "years",   3600 * 24 * 365 },