LocalTimeKt

public final class LocalTimeKt


Summary

Public methods

static final @NonNull LocalTime
localTime(
    @IntRange(from = 0, to = 23) int hours,
    @IntRange(from = 0, to = 59) int minutes
)

Builds a new LocalTime.

Public methods

localTime

public static final @NonNull LocalTime localTime(
    @IntRange(from = 0, to = 23) int hours,
    @IntRange(from = 0, to = 59) int minutes
)

Builds a new LocalTime.

Parameters
@IntRange(from = 0, to = 23) int hours

the hours in 24 hour format (0 <= hours< 24)

@IntRange(from = 0, to = 59) int minutes

the minutes (0 <= minutes< 60)

Returns
@NonNull LocalTime

the constructed LocalTime

Throws
java.lang.IllegalArgumentException

If parameters are not within range: 0 <= hours< 24, 0 <= minutes< 60, i.e. 00:00 to 23:59