op Period.-
The negated period.
Example:
fn main() io {
print("{(-(3.days())).show()}")
}Output
P-3D
pub(api) static op -(a: Period) -> PeriodSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
a | Period |
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:999