aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-20 21:13:33 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-20 21:13:33 +0000
commit8e50512f10df78eaffdcce24ce6f247b48540d15 (patch)
tree400cb72a025d0c09df7e29c7a19740f689d15078 /src
parent232ad66b68b7431f6e7640f228f0455e6000a0b1 (diff)
downloadgnunet-8e50512f10df78eaffdcce24ce6f247b48540d15.tar.gz
gnunet-8e50512f10df78eaffdcce24ce6f247b48540d15.zip
-support weeks as well
Diffstat (limited to 'src')
-rw-r--r--src/util/strings.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/strings.c b/src/util/strings.c
index d9280a37d..df0094cf4 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -311,6 +311,8 @@ GNUNET_STRINGS_fancy_time_to_relative (const char *fancy_time,
311 { "d", 24 * 60 * 60 * 1000LL * 1000LL}, 311 { "d", 24 * 60 * 60 * 1000LL * 1000LL},
312 { "day", 24 * 60 * 60 * 1000LL * 1000LL}, 312 { "day", 24 * 60 * 60 * 1000LL * 1000LL},
313 { "days", 24 * 60 * 60 * 1000LL * 1000LL}, 313 { "days", 24 * 60 * 60 * 1000LL * 1000LL},
314 { "week", 7 * 24 * 60 * 60 * 1000LL * 1000LL},
315 { "weeks", 7 * 24 * 60 * 60 * 1000LL * 1000LL},
314 { "a", 31536000000000LL /* year */ }, 316 { "a", 31536000000000LL /* year */ },
315 { NULL, 0} 317 { NULL, 0}
316 }; 318 };