OxL Reference

op Period.*

A period multiplied by an integer.

Example:

oxl✓ checked in CI
fn main() io {
  print("{(2.weeks() * 2).show()}")
}
Output
P28D
pub(api) static op *(a: Period, k: i64) -> Period

Since. 1.0.0-beta

Parameters

NameType
aPeriod
ki64

Returns

Period

Effects

none declared (pure unless the body says otherwise)

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

See also