From 06e8ed1f7c467d592bfb4c07e5a0ef1d6c794e4b Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 8 Sep 2018 10:49:57 -0700 Subject: [PATCH 1/2] add time spec --- ns/time.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ns/time.md diff --git a/ns/time.md b/ns/time.md new file mode 100644 index 0000000..c33e5be --- /dev/null +++ b/ns/time.md @@ -0,0 +1,14 @@ +# time + +Get the current time (offset from Jan 1 1970) from the host. + +## Functions + +### now + +**Returns:** `i64` + +**Semantics:** + +Returns the number of seconds elapsed since Jan 1, 1970. + From 3985037a72ddd1269f4b3d4e6e876f529c843bd2 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 8 Sep 2018 10:55:05 -0700 Subject: [PATCH 2/2] ns/time: UTC --- ns/time.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ns/time.md b/ns/time.md index c33e5be..5abb7bc 100644 --- a/ns/time.md +++ b/ns/time.md @@ -10,5 +10,4 @@ Get the current time (offset from Jan 1 1970) from the host. **Semantics:** -Returns the number of seconds elapsed since Jan 1, 1970. - +Returns the number of seconds elapsed since Jan 1, 1970, UTC. This offset will always be in UTC.