summaryrefslogtreecommitdiff
path: root/api-common.rst
diff options
context:
space:
mode:
Diffstat (limited to 'api-common.rst')
-rw-r--r--api-common.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/api-common.rst b/api-common.rst
index a6a41038..d2bf3a50 100644
--- a/api-common.rst
+++ b/api-common.rst
@@ -93,6 +93,7 @@ Common encodings
This section describes how certain types of values are represented throughout the API.
.. _base32:
+.. _tsref-type-Base32:
Binary Data
^^^^^^^^^^^
@@ -104,6 +105,9 @@ Large numbers
Large numbers such as RSA blinding factors and 256 bit keys, are transmitted as other binary data in Crockford Base32 encoding.
+
+.. _tsref-type-Timestamp:
+
Timestamps
^^^^^^^^^^
Timestamps are represented in JSON as a string literal `"\\/Date(x)\\/"`, where `x` is the decimal representation of the number of seconds past the Unix Epoch (January 1, 1970). The escaped slash (`\\/`) is interpreted in JSON simply as a normal slash, but distinguishes the timestamp from a normal string literal. We use the type "date" in the documentation below. Additionally, the special strings "\\/never\\/" and "\\/forever\\/" are recognized to represent the end of time.