aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_strings_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-19 21:44:38 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-19 21:44:38 +0000
commit9e130ed3b1863b7bd45192ba5cb87e87ce075ebb (patch)
tree0a8c13a66a390aae33aed368f2688c1686ca40e1 /src/include/gnunet_strings_lib.h
parentbc6e260a1452b0de53e5568e668228ec068e2680 (diff)
downloadgnunet-9e130ed3b1863b7bd45192ba5cb87e87ce075ebb.tar.gz
gnunet-9e130ed3b1863b7bd45192ba5cb87e87ce075ebb.zip
adding API for parsing absolute time
Diffstat (limited to 'src/include/gnunet_strings_lib.h')
-rw-r--r--src/include/gnunet_strings_lib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h
index d68ca5c78..a0d261d49 100644
--- a/src/include/gnunet_strings_lib.h
+++ b/src/include/gnunet_strings_lib.h
@@ -76,6 +76,19 @@ GNUNET_STRINGS_fancy_time_to_relative (const char *fancy_time,
76 76
77 77
78/** 78/**
79 * Convert a given fancy human-readable time to our internal
80 * representation.
81 *
82 * @param fancy_time human readable string (i.e. %Y-%m-%d %H:%M:%S)
83 * @param atime set to the absolute time
84 * @return GNUNET_OK on success, GNUNET_SYSERR on error
85 */
86int
87GNUNET_STRINGS_fancy_time_to_absolute (const char *fancy_time,
88 struct GNUNET_TIME_Absolute *atime);
89
90
91/**
79 * Convert a given filesize into a fancy human-readable format. 92 * Convert a given filesize into a fancy human-readable format.
80 * 93 *
81 * @param size number of bytes 94 * @param size number of bytes