LocalTimeType

final class LocalTimeType(time: LocalTime) extends AnyVal

Provides extension methods to java.time.LocalTime

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def +(amount: TemporalAmount): LocalTime

Gets time with specified amount added.

Gets time with specified amount added.

Value Params
amount

temporal amount

def -(amount: TemporalAmount): LocalTime

Gets time with specified amount subtracted.

Gets time with specified amount subtracted.

Value Params
amount

temporal amount

def atEndOfDay(using precision: TimePrecision): LocalTime

Gets time adjusted to end of day.

Gets time adjusted to end of day.

Value Params
precision

time precision

def atEndOfHour(using precision: TimePrecision): LocalTime

Gets time adjusted to end of hour.

Gets time adjusted to end of hour.

Value Params
precision

time precision

def atEndOfMicros(using precision: TimePrecision): LocalTime

Gets time adjusted to end of microsecond.

Gets time adjusted to end of microsecond.

Value Params
precision

time precision

def atEndOfMillis(using precision: TimePrecision): LocalTime

Gets time adjusted to end of millisecond.

Gets time adjusted to end of millisecond.

Value Params
precision

time precision

def atEndOfMinute(using precision: TimePrecision): LocalTime

Gets time adjusted to end of minute.

Gets time adjusted to end of minute.

Value Params
precision

time precision

def atEndOfSecond(using precision: TimePrecision): LocalTime

Gets time adjusted to end of second.

Gets time adjusted to end of second.

Value Params
precision

time precision

def atStartOfDay: LocalTime

Gets time truncated to day.

Gets time truncated to day.

def atStartOfHour: LocalTime

Gets time truncated to hour.

Gets time truncated to hour.

def atStartOfMicros: LocalTime

Gets time truncated to microsecond.

Gets time truncated to microsecond.

def atStartOfMillis: LocalTime

Gets time truncated to millisecond.

Gets time truncated to millisecond.

def atStartOfMinute: LocalTime

Gets time truncated to minute.

Gets time truncated to minute.

def atStartOfSecond: LocalTime

Gets time truncated to second.

Gets time truncated to second.

def iterateTo(end: LocalTime, step: Duration): Iterator[LocalTime]

Creates iterator to end time (inclusive).

Creates iterator to end time (inclusive).

Value Params
end

end time

step

duration by which to step

Throws
IllegalArgumentException

if step is zero.

def iterateUntil(end: LocalTime, step: Duration): Iterator[LocalTime]

Creates iterator to end time (exclusive).

Creates iterator to end time (exclusive).

Value Params
end

end time

step

duration by which to step

def max(other: LocalTime): LocalTime

Compares to other time and returns the greater value.

Compares to other time and returns the greater value.

Value Params
other

other time

def min(other: LocalTime): LocalTime

Compares to other time and returns the lesser value.

Compares to other time and returns the lesser value.

Value Params
other

other time