This module defines various units used for measuring, counting, and converting between hours, minutes, second, nanosecond, millisecond and nanoseconds.
The units are organized into types representing these time-related concepts, with operations provided to facilitate conversions and manipulations between them.
Converts a Nanosecond.Offset
to a Millisecond.Offset
.
Equations
- offset.toMilliseconds = Std.Time.Internal.UnitVal.div offset 1000000
Instances For
Converts a Millisecond.Offset
to a Nanosecond.Offset
.
Equations
- Std.Time.Nanosecond.Offset.ofMilliseconds offset = Std.Time.Internal.UnitVal.mul offset 1000000
Instances For
Converts a Nanosecond.Offset
to a Second.Offset
.
Equations
- offset.toSeconds = Std.Time.Internal.UnitVal.div offset 1000000000
Instances For
Converts a Second.Offset
to a Nanosecond.Offset
.
Equations
- Std.Time.Nanosecond.Offset.ofSeconds offset = Std.Time.Internal.UnitVal.mul offset 1000000000
Instances For
Converts a Nanosecond.Offset
to a Minute.Offset
.
Equations
- offset.toMinutes = Std.Time.Internal.UnitVal.div offset 60000000000
Instances For
Converts a Minute.Offset
to a Nanosecond.Offset
.
Equations
- Std.Time.Nanosecond.Offset.ofMinutes offset = Std.Time.Internal.UnitVal.mul offset 60000000000
Instances For
Converts a Nanosecond.Offset
to an Hour.Offset
.
Equations
- offset.toHours = Std.Time.Internal.UnitVal.div offset 3600000000000
Instances For
Converts an Hour.Offset
to a Nanosecond.Offset
.
Equations
- Std.Time.Nanosecond.Offset.ofHours offset = Std.Time.Internal.UnitVal.mul offset 3600000000000
Instances For
Converts a Millisecond.Offset
to a Nanosecond.Offset
.
Equations
- offset.toNanoseconds = Std.Time.Internal.UnitVal.mul offset 1000000
Instances For
Converts a Nanosecond.Offset
to a Millisecond.Offset
.
Equations
- Std.Time.Millisecond.Offset.ofNanoseconds offset = Std.Time.Internal.UnitVal.div offset 1000000
Instances For
Converts a Millisecond.Offset
to a Second.Offset
.
Equations
- offset.toSeconds = Std.Time.Internal.UnitVal.div offset 1000
Instances For
Converts a Second.Offset
to a Millisecond.Offset
.
Equations
- Std.Time.Millisecond.Offset.ofSeconds offset = Std.Time.Internal.UnitVal.mul offset 1000
Instances For
Converts a Millisecond.Offset
to a Minute.Offset
.
Equations
- offset.toMinutes = Std.Time.Internal.UnitVal.div offset 60000
Instances For
Converts a Minute.Offset
to a Millisecond.Offset
.
Equations
- Std.Time.Millisecond.Offset.ofMinutes offset = Std.Time.Internal.UnitVal.mul offset 60000
Instances For
Converts a Millisecond.Offset
to an Hour.Offset
.
Equations
- offset.toHours = Std.Time.Internal.UnitVal.div offset 3600000
Instances For
Converts an Hour.Offset
to a Millisecond.Offset
.
Equations
- Std.Time.Millisecond.Offset.ofHours offset = Std.Time.Internal.UnitVal.mul offset 3600000
Instances For
Converts a Second.Offset
to a Nanosecond.Offset
.
Equations
- offset.toNanoseconds = Std.Time.Internal.UnitVal.mul offset 1000000000
Instances For
Converts a Nanosecond.Offset
to a Second.Offset
.
Equations
- Std.Time.Second.Offset.ofNanoseconds offset = Std.Time.Internal.UnitVal.div offset 1000000000
Instances For
Converts a Second.Offset
to a Millisecond.Offset
.
Equations
- offset.toMilliseconds = Std.Time.Internal.UnitVal.mul offset 1000
Instances For
Converts a Millisecond.Offset
to a Second.Offset
.
Equations
- Std.Time.Second.Offset.ofMilliseconds offset = Std.Time.Internal.UnitVal.div offset 1000
Instances For
Converts a Second.Offset
to a Minute.Offset
.
Equations
- offset.toMinutes = Std.Time.Internal.UnitVal.div offset 60
Instances For
Converts a Minute.Offset
to a Second.Offset
.
Equations
- Std.Time.Second.Offset.ofMinutes offset = Std.Time.Internal.UnitVal.mul offset 60
Instances For
Converts a Second.Offset
to an Hour.Offset
.
Equations
- offset.toHours = Std.Time.Internal.UnitVal.div offset 3600
Instances For
Converts an Hour.Offset
to a Second.Offset
.
Equations
- Std.Time.Second.Offset.ofHours offset = Std.Time.Internal.UnitVal.mul offset 3600
Instances For
Converts a Minute.Offset
to a Nanosecond.Offset
.
Equations
- offset.toNanoseconds = Std.Time.Internal.UnitVal.mul offset 60000000000
Instances For
Converts a Nanosecond.Offset
to a Minute.Offset
.
Equations
- Std.Time.Minute.Offset.ofNanoseconds offset = Std.Time.Internal.UnitVal.div offset 60000000000
Instances For
Converts a Minute.Offset
to a Millisecond.Offset
.
Equations
- offset.toMilliseconds = Std.Time.Internal.UnitVal.mul offset 60000
Instances For
Converts a Millisecond.Offset
to a Minute.Offset
.
Equations
- Std.Time.Minute.Offset.ofMilliseconds offset = Std.Time.Internal.UnitVal.div offset 60000
Instances For
Converts a Minute.Offset
to a Second.Offset
.
Equations
- offset.toSeconds = Std.Time.Internal.UnitVal.mul offset 60
Instances For
Converts a Second.Offset
to a Minute.Offset
.
Equations
- Std.Time.Minute.Offset.ofSeconds offset = Std.Time.Internal.UnitVal.div offset 60
Instances For
Converts a Minute.Offset
to an Hour.Offset
.
Equations
- offset.toHours = Std.Time.Internal.UnitVal.div offset 60
Instances For
Converts an Hour.Offset
to a Minute.Offset
.
Equations
- Std.Time.Minute.Offset.ofHours offset = Std.Time.Internal.UnitVal.mul offset 60
Instances For
Converts an Hour.Offset
to a Nanosecond.Offset
.
Equations
- offset.toNanoseconds = Std.Time.Internal.UnitVal.mul offset 3600000000000
Instances For
Converts a Nanosecond.Offset
to an Hour.Offset
.
Equations
- Std.Time.Hour.Offset.ofNanoseconds offset = Std.Time.Internal.UnitVal.div offset 3600000000000
Instances For
Converts an Hour.Offset
to a Millisecond.Offset
.
Equations
- offset.toMilliseconds = Std.Time.Internal.UnitVal.mul offset 3600000
Instances For
Converts a Millisecond.Offset
to an Hour.Offset
.
Equations
- Std.Time.Hour.Offset.ofMilliseconds offset = Std.Time.Internal.UnitVal.div offset 3600000
Instances For
Converts an Hour.Offset
to a Second.Offset
.
Equations
- offset.toSeconds = Std.Time.Internal.UnitVal.mul offset 3600
Instances For
Converts a Second.Offset
to an Hour.Offset
.
Equations
- Std.Time.Hour.Offset.ofSeconds offset = Std.Time.Internal.UnitVal.div offset 3600
Instances For
Converts an Hour.Offset
to a Minute.Offset
.
Equations
- offset.toMinutes = Std.Time.Internal.UnitVal.mul offset 60
Instances For
Converts a Minute.Offset
to an Hour.Offset
.
Equations
- Std.Time.Hour.Offset.ofMinutes offset = Std.Time.Internal.UnitVal.div offset 60