Std.Time
40 public declarations
- absolute
&Std.Time.Duration -> Std.Time.DurationA duration with its sign removed.
- add
&Std.Time.Instant -> &Std.Time.Duration -> Std.Time.InstantA duration added to an instant.
- atUtc
&Std.Time.Date -> &Std.Time.TimeOfDay -> Result[Std.Time.Instant, Str]A date and a time of day read as an instant in UTC.
- between
&Std.Time.Instant -> &Std.Time.Instant -> Std.Time.DurationThe time from the first instant to the second, negative when it is behind.
- currentInstant
Std.Time.InstantThe instant this is called at, on the system clock.
- Date
A civil date with no instant until a zone is applied.
- days
Int -> Std.Time.DurationA duration of days, taken as exactly twenty-four hours.
- describe
&Std.Time.Duration -> StrA duration written the way a person reads one, such as `1h 5m 3s`.
- Duration
A length of time, as milliseconds.
- durationMillis
&Std.Time.Duration -> IntThe milliseconds a duration lasts.
- durationSeconds
&Std.Time.Duration -> IntThe whole seconds a duration lasts.
- earliest
&Std.Time.Instant -> &Std.Time.Instant -> Std.Time.InstantThe earlier of two instants.
- elapsed
IntMilliseconds on a clock that only moves forward, for measuring a duration.
- format
&Std.Time.Instant -> Str -> Result[Str, Str]An instant rendered in UTC with a pattern.
- formatLocal
&Std.Time.Instant -> Str -> Result[Str, Str]An instant rendered in the machine's own zone with a pattern.
- fromRfc3339
Str -> Result[Std.Time.Instant, Str]An instant read from RFC 3339.
- hours
Int -> Std.Time.DurationA duration of hours.
- Instant
A point on the system clock, as milliseconds since the start of 1970.
- instantOf
Int -> Std.Time.InstantAn instant built from milliseconds since the start of 1970.
- isAfter
&Std.Time.Instant -> &Std.Time.Instant -> BoolWhether the first instant is after the second.
- isBefore
&Std.Time.Instant -> &Std.Time.Instant -> BoolWhether the first instant is before the second.
- latest
&Std.Time.Instant -> &Std.Time.Instant -> Std.Time.InstantThe later of two instants.
- localOffsetMinutes
IntThe machine's own offset from UTC, in minutes east of it.
- millis
Int -> Std.Time.DurationA duration of milliseconds.
- minus
&Std.Time.Duration -> &Std.Time.Duration -> Std.Time.DurationOne duration taken from another.
- minutes
Int -> Std.Time.DurationA duration of minutes.
- parse
Str -> Str -> Result[Std.Time.Instant, Str]An instant read with a pattern.
- parseDate
Str -> Result[Std.Time.Date, Str]A date read from `YYYY-MM-DD`.
- plus
&Std.Time.Duration -> &Std.Time.Duration -> Std.Time.DurationTwo durations added.
- renderDate
&Std.Time.Date -> StrA date written as `YYYY-MM-DD`.
- renderTime
&Std.Time.TimeOfDay -> StrA time of day written as `HH:MM:SS`.
- scale
&Std.Time.Duration -> Int -> Std.Time.DurationA duration multiplied by a whole number.
- seconds
Int -> Std.Time.DurationA duration of seconds.
- subtract
&Std.Time.Instant -> &Std.Time.Duration -> Std.Time.InstantA duration taken from an instant.
- TimeOfDay
A time of day with no date and no zone.
- toDate
&Std.Time.Instant -> Result[Std.Time.Date, Str]An instant rendered as a date in UTC.
- toMillis
&Std.Time.Instant -> IntThe milliseconds an instant stands at.
- toRfc3339
&Std.Time.Instant -> Result[Str, Str]An instant rendered as RFC 3339, in UTC.
- toSeconds
&Std.Time.Instant -> IntThe whole seconds an instant stands at.
- toTimeOfDay
&Std.Time.Instant -> Result[Std.Time.TimeOfDay, Str]An instant rendered as a time of day in UTC.
