OxL Reference

method i64.months

A period of this many months.

Example:

oxl✓ checked in CI
fn main() io {
  print("{5.months().totalMonths()}")
}
Output
5
pub(api) fn months() -> Period

Since. 1.0.0-beta

Returns

Period

Effects

none declared (pure unless the body says otherwise)

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

See also