OxL Reference

op Period.+

The sum of two periods (part by part).

Example:

oxl✓ checked in CI
fn main() io {
  print("{(1.month() + 10.days()).show()}")
}
Output
P1M10D
pub(api) static op +(a: Period, b: Period) -> Period

Since. 1.0.0-beta

Parameters

NameType
aPeriod
bPeriod

Returns

Period

Effects

none declared (pure unless the body says otherwise)

Defined in: std/time/time.oxl:973

See also