>gmt ( timestamp -- timestamp' )
Calendar

Prev:>local-time ( timestamp -- timestamp' )
Next:>utc ( timestamp -- timestamp' )


Vocabulary
calendar

Inputs
timestampa 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


: >gmt ( timestamp -- timestamp' ) clone convert-gmt ;