convert-timezone ( timestamp duration -- timestamp' )
Calendar

Prev:>gmt ( timestamp -- timestamp' )
Next:Relative timestamps


Vocabulary
calendar

Inputs and outputs
timestampa timestamp
durationa duration
timestamp'a timestamp


Word description
Converts the timestamp's gmt-offset to the GMT offset represented by the duration.

Examples
USING: accessors calendar prettyprint ; gmt noon instant -5 >>hour convert-timezone gmt-offset>> hour>> .
-5


Definition