ago ( duration -- timestamp )
Calendar ยป Relative timestamps

Prev:hence ( duration -- timestamp )
Next:before ( duration -- -duration )


Vocabulary
calendar

Inputs
durationa duration


Outputs
timestampa timestamp


Word description
Computes a time in the past that is the duration subtracted from the result of now.

Examples
USING: calendar prettyprint ; 3 weeks ago .
T{ timestamp f 2008 8 11 16 49 52+99/500 T{ duration f 0 0 0 -5 0 0 } }


Definition


: ago ( duration -- timestamp ) now swap time- ;