TimeRange.Companion
object TimeRange.Companion
Summary
Public methods |
|
---|---|
final @NonNull TimeRange |
Constructs a time range after a given point in time. |
final @NonNull TimeRange |
Constructs a time range until a given point in time. |
final @NonNull TimeRange |
Constructs a time range between two points in time, inclusive of the points themselves. |
Public fields
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.