From: Christian Grothoff Date: Thu, 25 Aug 2016 09:59:27 +0000 (+0000) Subject: -support hours/hour/minute as relative time units X-Git-Tag: initial-import-from-subversion-38251~350 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bc3f45a82f10905c9630618e12cb062348cf21ac;p=oweals%2Fgnunet.git -support hours/hour/minute as relative time units --- 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, { "\"", 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},