time- ( time1 time2 -- time3 )
Calendar > Timestamp arithmetic

Prev:time+ ( time1 time2 -- time3 )
Next:time* ( obj1 obj2 -- obj3 )


Vocabulary
calendar

Inputs and outputs
time1timestamp or duration
time2timestamp or duration
time3timestamp or duration


Word description
Subtracts two durations to produce a duration or subtracts a duration from a timestamp to produce a timestamp. The calculation takes timezones into account.

Examples
USING: calendar math.order prettyprint ; 10 months 2 months time- 8 months <=> .
+eq+

USING: accessors calendar math.order prettyprint ; 2010 1 1 <date> 3 days time- day>> .
29


See also
time+, time*

Definition

GENERIC: time- ( time1 time2 -- time3 )


Methods