aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-08-25 09:59:27 +0000
committerChristian Grothoff <christian@grothoff.org>2016-08-25 09:59:27 +0000
commitbc3f45a82f10905c9630618e12cb062348cf21ac (patch)
tree12039f4df2ae84c696aba33b7a1f2f2e06b1805d /src
parent33fb3038d0bf6e4b8f234bc10e4bc89441b1dc26 (diff)
downloadgnunet-bc3f45a82f10905c9630618e12cb062348cf21ac.tar.gz
gnunet-bc3f45a82f10905c9630618e12cb062348cf21ac.zip
-support hours/hour/minute as relative time units
Diffstat (limited to 'src')
-rw-r--r--src/util/strings.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/strings.c b/src/util/strings.c
index abaaf23b2..21470628e 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -306,9 +306,12 @@ GNUNET_STRINGS_fancy_time_to_relative (const char *fancy_time,
306 { "\"", 1000 * 1000LL }, 306 { "\"", 1000 * 1000LL },
307 { "m", 60 * 1000 * 1000LL}, 307 { "m", 60 * 1000 * 1000LL},
308 { "min", 60 * 1000 * 1000LL}, 308 { "min", 60 * 1000 * 1000LL},
309 { "minute", 60 * 1000 * 1000LL},
309 { "minutes", 60 * 1000 * 1000LL}, 310 { "minutes", 60 * 1000 * 1000LL},
310 { "'", 60 * 1000 * 1000LL}, 311 { "'", 60 * 1000 * 1000LL},
311 { "h", 60 * 60 * 1000 * 1000LL}, 312 { "h", 60 * 60 * 1000 * 1000LL},
313 { "hour", 60 * 60 * 1000 * 1000LL},
314 { "hours", 60 * 60 * 1000 * 1000LL},
312 { "d", 24 * 60 * 60 * 1000LL * 1000LL}, 315 { "d", 24 * 60 * 60 * 1000LL * 1000LL},
313 { "day", 24 * 60 * 60 * 1000LL * 1000LL}, 316 { "day", 24 * 60 * 60 * 1000LL * 1000LL},
314 { "days", 24 * 60 * 60 * 1000LL * 1000LL}, 317 { "days", 24 * 60 * 60 * 1000LL * 1000LL},