method i64.years
A period of this many years.
Example:
fn main() io {
print("{3.years().totalMonths()}")
}Output
36
pub(api) fn years() -> PeriodSince. 1.0.0-beta
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:1046