projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33fb303
)
-support hours/hour/minute as relative time units
author
Christian Grothoff
<christian@grothoff.org>
Thu, 25 Aug 2016 09:59:27 +0000
(09:59 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Thu, 25 Aug 2016 09:59:27 +0000
(09:59 +0000)
src/util/strings.c
patch
|
blob
|
history
diff --git
a/src/util/strings.c
b/src/util/strings.c
index abaaf23b2272373b8de5335991466365139d88a0..21470628e16a1acb15eed040e8e22091439869eb 100644
(file)
--- a/
src/util/strings.c
+++ b/
src/util/strings.c
@@
-306,9
+306,12
@@
GNUNET_STRINGS_fancy_time_to_relative (const char *fancy_time,
{ "\"", 1000 * 1000LL },
{ "m", 60 * 1000 * 1000LL},
{ "min", 60 * 1000 * 1000LL},
+ { "minute", 60 * 1000 * 1000LL},
{ "minutes", 60 * 1000 * 1000LL},
{ "'", 60 * 1000 * 1000LL},
{ "h", 60 * 60 * 1000 * 1000LL},
+ { "hour", 60 * 60 * 1000 * 1000LL},
+ { "hours", 60 * 60 * 1000 * 1000LL},
{ "d", 24 * 60 * 60 * 1000LL * 1000LL},
{ "day", 24 * 60 * 60 * 1000LL * 1000LL},
{ "days", 24 * 60 * 60 * 1000LL * 1000LL},