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(@NonNull Instant startInstant)
Constructs a time range after a given point in time.
before
public final @NonNull TimeRange before(@NonNull Instant endInstant)
Constructs a time range until a given point in time.
between
public final @NonNull TimeRange between(@NonNull Instant startInstant, @NonNull Instant endInstant)
Constructs a time range between two points in time, inclusive of the points themselves.