Handbook
Glossary
>local-time ( timestamp -- timestamp' )
Calendar
Prev:
now-utc ( -- timestamp )
Next:
>gmt ( timestamp -- timestamp' )
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
;