gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit bc3f45a82f10905c9630618e12cb062348cf21ac
parent 33fb3038d0bf6e4b8f234bc10e4bc89441b1dc26
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 25 Aug 2016 09:59:27 +0000

-support hours/hour/minute as relative time units

Diffstat:
Msrc/util/strings.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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},