Vocabulary
calendar

Inputs
time1a timestamp or a duration
time2a timestamp or a duration


Outputs
time3a timestamp or a 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-

Definition

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


Methods