record DurationRep : Type A fixed amount of elapsed timeline time, measured in nanoseconds.
Unlike `Period`, a duration has no calendar-relative units.
Totality: total
Visibility: export
Constructor: MkDuration : Integer -> DurationRep
Projection: .storedNanoseconds : DurationRep -> Integer
Duration : Type The public opaque type of fixed elapsed durations.
Totality: total
Visibility: public exportdurationFromNanoseconds : Integer -> Duration Construct a duration from an exact number of nanoseconds.
Totality: total
Visibility: exportfromNanoseconds : Integer -> Duration Construct a duration from an exact number of nanoseconds.
Totality: total
Visibility: public exportdurationFromMicroseconds : Integer -> Duration Construct a duration from an exact number of microseconds.
Totality: total
Visibility: exportfromMicroseconds : Integer -> Duration Construct a duration from an exact number of microseconds.
Totality: total
Visibility: public exportdurationFromMilliseconds : Integer -> Duration Construct a duration from an exact number of milliseconds.
Totality: total
Visibility: exportfromMilliseconds : Integer -> Duration Construct a duration from an exact number of milliseconds.
Totality: total
Visibility: public exportdurationFromSeconds : Integer -> Duration Construct a duration from an exact number of seconds.
Totality: total
Visibility: exportfromSeconds : Integer -> Duration Construct a duration from an exact number of seconds.
Totality: total
Visibility: public exportdurationFromMinutes : Integer -> Duration Construct a duration from fixed 60-second minutes.
Totality: total
Visibility: exportfromMinutes : Integer -> Duration Construct a duration from fixed 60-second minutes.
Totality: total
Visibility: public exportdurationFromHours : Integer -> Duration Construct a duration from fixed 60-minute hours.
Totality: total
Visibility: exportfromHours : Integer -> Duration Construct a duration from fixed 60-minute hours.
Totality: total
Visibility: public exportdurationFromStandardDays : Integer -> Duration Construct a duration from fixed 24-hour days, independent of calendars and zones.
Totality: total
Visibility: exportfromStandardDays : Integer -> Duration Construct a duration from fixed 24-hour days, independent of calendars and zones.
Totality: total
Visibility: public exportdurationFromStandardWeeks : Integer -> Duration Construct a duration from fixed seven-day weeks.
Totality: total
Visibility: exportfromStandardWeeks : Integer -> Duration Construct a duration from fixed seven-day weeks.
Totality: total
Visibility: public exporttoDurationNanoseconds : Duration -> Integer Return the exact signed nanosecond count represented by a duration.
Totality: total
Visibility: public exporttoMicroseconds : Duration -> Integer Return the number of whole microseconds in a duration.
Totality: total
Visibility: public exporttoMilliseconds : Duration -> Integer Return the number of whole milliseconds in a duration.
Totality: total
Visibility: public exporttoSeconds : Duration -> Integer Return the number of whole seconds in a duration, truncated toward negative infinity.
Totality: total
Visibility: public exporttoMinutes : Duration -> Integer Return the number of whole fixed 60-second minutes in a duration.
Totality: total
Visibility: public exporttoHours : Duration -> Integer Return the number of whole fixed 60-minute hours in a duration.
Totality: total
Visibility: public exporttoStandardDays : Duration -> Integer Return the number of whole fixed 24-hour days in a duration.
Totality: total
Visibility: public exporttoStandardWeeks : Duration -> Integer Return the number of whole fixed seven-day weeks in a duration.
Totality: total
Visibility: public exportzeroDuration : Duration The duration containing no elapsed time.
Totality: total
Visibility: exportaddDurations : Duration -> Duration -> Duration Add two elapsed durations.
Totality: total
Visibility: exportadd : Duration -> Duration -> Duration Add two elapsed durations.
Totality: total
Visibility: public exportsubtractDurations : Duration -> Duration -> Duration Subtract the second duration from the first.
Totality: total
Visibility: exportminus : Duration -> Duration -> Duration Subtract the second duration from the first.
Totality: total
Visibility: public exportnegateDuration : Duration -> Duration Reverse the direction of a duration.
Totality: total
Visibility: exportscaleDuration : Integer -> Duration -> Duration Multiply a duration by an integer factor.
Totality: total
Visibility: exportdurationNanosecondsRoundTrip : (value : Integer) -> toDurationNanoseconds (fromNanoseconds value) = value Proof that constructing then observing a nanosecond count is lossless.
Totality: total
Visibility: public exportdurationRoundTrip : (value : Duration) -> fromNanoseconds (toDurationNanoseconds value) = value Proof that observing then reconstructing a duration preserves it.
Totality: total
Visibility: public export