summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-11 21:51:41 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-11 21:51:41 +0100
commitce3efae11ca9aa59f99d7f3c57b73f75f93564df (patch)
tree828603591183836d07df2aa9b878c818b503e2e8 /core
parent704f3592f1e9308336567dd39c1f24ce90cbb39d (diff)
downloaddocs-ce3efae11ca9aa59f99d7f3c57b73f75f93564df.tar.gz
docs-ce3efae11ca9aa59f99d7f3c57b73f75f93564df.tar.bz2
docs-ce3efae11ca9aa59f99d7f3c57b73f75f93564df.zip
changing time API
Diffstat (limited to 'core')
-rw-r--r--core/api-common.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/core/api-common.rst b/core/api-common.rst
index 6b0f7929..696dc4f2 100644
--- a/core/api-common.rst
+++ b/core/api-common.rst
@@ -262,18 +262,19 @@ Timestamps are represented by the following structure:
.. ts:def:: Timestamp
interface Timestamp {
- // Milliseconds since epoch, or the special
+ // Seconds since epoch, or the special
// value "never" to represent an event that will
// never happen.
- t_ms: number | "never";
+ t_s: number | "never";
}
.. ts:def:: RelativeTime
interface Duration {
- // Duration in milliseconds or "forever"
- // to represent an infinite duration.
- d_ms: number | "forever";
+ // Duration in microseconds or "forever"
+ // to represent an infinite duration. Numeric
+ // values are capped at 2^53 - 1 inclusive.
+ d_us: number | "forever";
}