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

Next:time- ( time1 time2 -- time3 )


Vocabulary
calendar

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


Word description
Adds two durations to produce a duration or adds a timestamp and a duration to produce a timestamp. The calculation takes timezones into account.

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

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


See also
time-, time*

Definition

GENERIC#: time+ 1 ( time1 time2 -- time3 )


Methods