method Period.ofMonths
A calendar period of n months.
Example:
use std.time { Period }
fn main() io {
print("{Period.ofMonths(5).totalMonths()}")
}Output
5
pub(api) static fn ofMonths(n: i64) -> PeriodSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
n | i64 |
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:905