TimeRange.Companion

object TimeRange.Companion


Summary

Public fields

final @NonNull TimeRange

The TimeRange that includes every point in time.

Public methods

final @NonNull TimeRange
after(Instant startInstant)

Constructs a time range after a given point in time.

final @NonNull TimeRange
before(Instant endInstant)

Constructs a time range until a given point in time.

final @NonNull TimeRange
between(Instant startInstant, Instant endInstant)

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

Public fields

ALWAYS

public final @NonNull TimeRange ALWAYS

The TimeRange that includes every point in time.

Public methods

after

public final @NonNull TimeRange after(Instant startInstant)

Constructs a time range after a given point in time.

before

public final @NonNull TimeRange before(Instant endInstant)

Constructs a time range until a given point in time.

between

public final @NonNull TimeRange between(Instant startInstant, Instant endInstant)

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