Skip to main content

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 to self. Note that this cannot be a Duration, neither Date_Time.

Examples

Add 1 day to 1 month.

    import Standard.Base.Data.Time.Period

example_add = (Period.new months=1) + (Period.new days=1)