now ( -- timestamp ) - Factor Documentation

now ( -- timestamp )
Calendar



Vocabulary
calendar

Inputs
None

Outputs
timestamp a timestamp


Word description
Returns the time right now in your computer's timezone.

Examples
USING: calendar prettyprint ; now .
T{ timestamp f 2008 9 1 16 38 24+801/1000 T{ duration f 0 0 0 -5 0 0 } }


See also
now-gmt

Definition
USING: accessors calendar.private kernel ;

IN: calendar

: now ( -- timestamp )
now-gmt gmt-offset-duration [ (time+) ] [ >>gmt-offset ] bi
;

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