OxL Reference

op Period.-

The negated period.

Example:

oxl✓ checked in CI
fn main() io {
  print("{(-(3.days())).show()}")
}
Output
P-3D
pub(api) static op -(a: Period) -> Period

Since. 1.0.0-beta

Parameters

NameType
aPeriod

Returns

Period

Effects

none declared (pure unless the body says otherwise)

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

See also