From b3909bc84fbce46df1dc4b3df4140bf1bfa3ae78 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 4 Nov 2011 09:15:06 +0000 Subject: fix --- src/include/gnunet_strings_lib.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h index 637d4f7de..5a4996c3b 100644 --- a/src/include/gnunet_strings_lib.h +++ b/src/include/gnunet_strings_lib.h @@ -62,6 +62,19 @@ GNUNET_STRINGS_fancy_size_to_bytes (const char *fancy_size, unsigned long long *size); +/** + * Convert a given fancy human-readable time to our internal + * representation. + * + * @param fancy_size human readable string (i.e. 1 minute) + * @param rtime set to the relative time + * @return GNUNET_OK on success, GNUNET_SYSERR on error + */ +int +GNUNET_STRINGS_fancy_time_to_relative (const char *fancy_size, + struct GNUNET_TIME_Relative *rtime); + + /** * Convert a given filesize into a fancy human-readable format. * -- cgit v1.2.3