aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_json_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_json_lib.h')
-rw-r--r--src/include/taler_json_lib.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h
index 0cbeba082..f338d44ae 100644
--- a/src/include/taler_json_lib.h
+++ b/src/include/taler_json_lib.h
@@ -54,6 +54,19 @@ TALER_JSON_pack_time_abs (const char *name,
54 54
55/** 55/**
56 * Generate packer instruction for a JSON field of type 56 * Generate packer instruction for a JSON field of type
57 * absolute time creating a human-readable timestamp.
58 *
59 * @param name name of the field to add to the object
60 * @param at absolute time to pack
61 * @return json pack specification
62 */
63struct GNUNET_JSON_PackSpec
64TALER_JSON_pack_time_abs_human (const char *name,
65 struct GNUNET_TIME_Absolute at);
66
67
68/**
69 * Generate packer instruction for a JSON field of type
57 * absolute time in network byte order. 70 * absolute time in network byte order.
58 * The absolute time value is expected to be already rounded. 71 * The absolute time value is expected to be already rounded.
59 * 72 *
@@ -68,6 +81,19 @@ TALER_JSON_pack_time_abs_nbo (const char *name,
68 81
69/** 82/**
70 * Generate packer instruction for a JSON field of type 83 * Generate packer instruction for a JSON field of type
84 * absolute time creating a human-readable timestamp.
85 *
86 * @param name name of the field to add to the object
87 * @param at absolute time to pack
88 * @return json pack specification
89 */
90struct GNUNET_JSON_PackSpec
91TALER_JSON_pack_time_abs_nbo_human (const char *name,
92 struct GNUNET_TIME_AbsoluteNBO at);
93
94
95/**
96 * Generate packer instruction for a JSON field of type
71 * relative time. 97 * relative time.
72 * The relative time value is expected to be already rounded. 98 * The relative time value is expected to be already rounded.
73 * 99 *