>local-time ( timestamp -- timestamp' ) - Factor Documentation

>local-time ( timestamp -- timestamp' )
Calendar



Vocabulary
calendar

Inputs
timestamp a timestamp


Outputs
timestamp' a timestamp


Word description
Converts the timestamp to the timezone of your computer, returning a new timestamp instance.

Examples
USING: accessors calendar kernel prettyprint ; now now-gmt >local-time [ gmt-offset>> ] same? .
t


See also
local-time , convert-local-time , gmt , >gmt , convert-gmt , utc , >utc , convert-utc , convert-timezone

Definition
USING: kernel ;

IN: calendar

: >local-time ( timestamp -- timestamp' )
clone convert-local-time ;

AltStyle によって変換されたページ (->オリジナル) /