method Period.ofWeeks
A calendar period of n weeks (7 days each).
Example:
use std.time { Period }
fn main() io {
print("{Period.ofWeeks(2).days}")
}Output
14
pub(api) static fn ofWeeks(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:919