TimeRange.Companion

object TimeRange.Companion


Summary

Public functions

TimeRange
after(startInstant: Instant)

Constructs a time range after a given point in time.

TimeRange
before(endInstant: Instant)

Constructs a time range until a given point in time.

TimeRange
between(startInstant: Instant, endInstant: Instant)

Constructs a time range between two points in time, inclusive of the points themselves.

Public properties

TimeRange

The TimeRange that includes every point in time.

Public functions

after

fun after(startInstant: Instant): TimeRange

Constructs a time range after a given point in time.

before

fun before(endInstant: Instant): TimeRange

Constructs a time range until a given point in time.

between

fun between(startInstant: Instant, endInstant: Instant): TimeRange

Constructs a time range between two points in time, inclusive of the points themselves.

Public properties

ALWAYS

val ALWAYSTimeRange

The TimeRange that includes every point in time.