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