Period.+
+other_period
Group: Operators
Aliases: add period
Documentation
Add the specified amount of time to this period.
Arguments
other_period
: The period to add toself
. Note that this cannot be aDuration
, neitherDate_Time
.
Examples
Add 1 day to 1 month.
import Standard.Base.Data.Time.Period
example_add = (Period.new months=1) + (Period.new days=1)