Skip to main content

Period.-

-other_period

Group: Operators
Aliases: subtract period

Documentation

Subtract a specified amount of time from this period.

Arguments

  • other_period: Other Period to add to this Period. Note that this cannot be a Duration, neither Date_Time.

Examples

Subtract 11 months from a period of 3 years

      import Standard.Base.Data.Time.Period

example_subtract = (Period.new years=3) - (Period.new months=11)