LocalTimeMethods

final implicit class LocalTimeMethods(time: LocalTime) extends AnyVal

Provides extension methods for 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 parameters:
amount

temporal amount

def -(amount: TemporalAmount): LocalTime

Gets time with specified amount subtracted.

Gets time with specified amount subtracted.

Value parameters:
amount

temporal amount

def atEndOfDay(using precision: TimePrecision): LocalTime

Gets time adjusted to end of day.

Gets time adjusted to end of day.

Value parameters:
precision

time precision

def atEndOfHour(using precision: TimePrecision): LocalTime

Gets time adjusted to end of hour.

Gets time adjusted to end of hour.

Value parameters:
precision

time precision

def atEndOfMicros(using precision: TimePrecision): LocalTime

Gets time adjusted to end of microsecond.

Gets time adjusted to end of microsecond.

Value parameters:
precision

time precision

def atEndOfMillis(using precision: TimePrecision): LocalTime

Gets time adjusted to end of millisecond.

Gets time adjusted to end of millisecond.

Value parameters:
precision

time precision

def atEndOfMinute(using precision: TimePrecision): LocalTime

Gets time adjusted to end of minute.

Gets time adjusted to end of minute.

Value parameters:
precision

time precision

def atEndOfSecond(using precision: TimePrecision): LocalTime

Gets time adjusted to end of second.

Gets time adjusted to end of second.

Value parameters:
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 parameters:
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 parameters:
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 parameters:
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 parameters:
other

other time