aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_time_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_time_lib.h')
-rw-r--r--src/include/gnunet_time_lib.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h
index b14439462..96413c3cc 100644
--- a/src/include/gnunet_time_lib.h
+++ b/src/include/gnunet_time_lib.h
@@ -762,11 +762,22 @@ GNUNET_TIME_absolute_from_s (uint64_t s_after_epoch);
762 * 762 *
763 * @param s_after_epoch seconds after epoch to convert 763 * @param s_after_epoch seconds after epoch to convert
764 * @return converted time value 764 * @return converted time value
765 */struct GNUNET_TIME_Timestamp 765 */
766struct GNUNET_TIME_Timestamp
766GNUNET_TIME_timestamp_from_s (uint64_t s_after_epoch); 767GNUNET_TIME_timestamp_from_s (uint64_t s_after_epoch);
767 768
768 769
769/** 770/**
771 * Convert timestamp to number of seconds after the UNIX epoch.
772 *
773 * @param ts timestamp to convert
774 * @return converted time value
775 */
776uint64_t
777GNUNET_TIME_timestamp_to_s (struct GNUNET_TIME_Timestamp ts);
778
779
780/**
770 * Convert absolute time from network byte order. 781 * Convert absolute time from network byte order.
771 * 782 *
772 * @param a time to convert 783 * @param a time to convert