Handbook
Glossary
>gmt ( timestamp -- timestamp' )
Calendar
Prev:
>local-time ( timestamp -- timestamp' )
Next:
>utc ( timestamp -- timestamp' )
Vocabulary
calendar
Inputs
timestamp
a
timestamp
Outputs
timestamp'
a
timestamp
Word description
Converts the
timestamp
to the GMT timezone, returning a new
timestamp
instance.
Examples
USING: accessors calendar kernel prettyprint ; now >gmt gmt-offset>> hour>> .
0
See also
local-time
,
>local-time
,
convert-local-time
,
gmt
,
convert-gmt
,
utc
,
>utc
,
convert-utc
,
convert-timezone
Definition
USING:
kernel
;
IN:
calendar
:
>gmt
( timestamp -- timestamp' )
clone
convert-gmt
;