Handbook
Glossary
micros>timestamp ( x -- timestamp )
Vocabulary
calendar
Inputs
x
a
number
Outputs
timestamp
a
timestamp
Word description
Converts a number of microseconds into a timestamp value in GMT time.
Examples
USING: accessors calendar prettyprint ; 1000 micros>timestamp year>> .
1970
Definition
USING:
calendar.private
kernel
math
;
IN:
calendar
:
micros>timestamp
( x -- timestamp )
unix-1970
swap
1000000
/
+second
;