static LocalTime |
LocalTime.from(TemporalAccessor temporal) |
Obtains an instance of LocalTime from a temporal object.
|
LocalTime |
LocalTime.minus(long amountToSubtract,
TemporalUnit unit) |
Returns a copy of this time with the specified amount subtracted.
|
LocalTime |
LocalTime.minus(TemporalAmount amountToSubtract) |
Returns a copy of this time with the specified amount subtracted.
|
LocalTime |
LocalTime.minusHours(long hoursToSubtract) |
Returns a copy of this LocalTime with the specified number of hours subtracted.
|
LocalTime |
LocalTime.minusMinutes(long minutesToSubtract) |
Returns a copy of this LocalTime with the specified number of minutes subtracted.
|
LocalTime |
LocalTime.minusNanos(long nanosToSubtract) |
Returns a copy of this LocalTime with the specified number of nanoseconds subtracted.
|
LocalTime |
LocalTime.minusSeconds(long secondsToSubtract) |
Returns a copy of this LocalTime with the specified number of seconds subtracted.
|
static LocalTime |
LocalTime.now() |
Obtains the current time from the system clock in the default time-zone.
|
static LocalTime |
LocalTime.now(Clock clock) |
Obtains the current time from the specified clock.
|
static LocalTime |
LocalTime.now(ZoneId zone) |
Obtains the current time from the system clock in the specified time-zone.
|
static LocalTime |
LocalTime.of(int hour,
int minute) |
Obtains an instance of LocalTime from an hour and minute.
|
static LocalTime |
LocalTime.of(int hour,
int minute,
int second) |
Obtains an instance of LocalTime from an hour, minute and second.
|
static LocalTime |
LocalTime.of(int hour,
int minute,
int second,
int nanoOfSecond) |
Obtains an instance of LocalTime from an hour, minute, second and nanosecond.
|
static LocalTime |
LocalTime.ofInstant(Instant instant,
ZoneId zone) |
Obtains an instance of LocalTime from an Instant and zone ID.
|
static LocalTime |
LocalTime.ofNanoOfDay(long nanoOfDay) |
Obtains an instance of LocalTime from a nanos-of-day value.
|
static LocalTime |
LocalTime.ofSecondOfDay(long secondOfDay) |
Obtains an instance of LocalTime from a second-of-day value.
|
static LocalTime |
LocalTime.parse(CharSequence text) |
Obtains an instance of LocalTime from a text string such as 10:15.
|
static LocalTime |
LocalTime.parse(CharSequence text,
DateTimeFormatter formatter) |
Obtains an instance of LocalTime from a text string using a specific formatter.
|
LocalTime |
LocalTime.plus(long amountToAdd,
TemporalUnit unit) |
Returns a copy of this time with the specified amount added.
|
LocalTime |
LocalTime.plus(TemporalAmount amountToAdd) |
Returns a copy of this time with the specified amount added.
|
LocalTime |
LocalTime.plusHours(long hoursToAdd) |
Returns a copy of this LocalTime with the specified number of hours added.
|
LocalTime |
LocalTime.plusMinutes(long minutesToAdd) |
Returns a copy of this LocalTime with the specified number of minutes added.
|
LocalTime |
LocalTime.plusNanos(long nanosToAdd) |
Returns a copy of this LocalTime with the specified number of nanoseconds added.
|
LocalTime |
LocalTime.plusSeconds(long secondstoAdd) |
Returns a copy of this LocalTime with the specified number of seconds added.
|
LocalTime |
LocalDateTime.toLocalTime() |
Gets the LocalTime part of this date-time.
|
LocalTime |
OffsetDateTime.toLocalTime() |
Gets the LocalTime part of this date-time.
|
LocalTime |
OffsetTime.toLocalTime() |
Gets the LocalTime part of this date-time.
|
LocalTime |
ZonedDateTime.toLocalTime() |
Gets the LocalTime part of this date-time.
|
LocalTime |
LocalTime.truncatedTo(TemporalUnit unit) |
Returns a copy of this LocalTime with the time truncated.
|
LocalTime |
LocalTime.with(TemporalAdjuster adjuster) |
Returns an adjusted copy of this time.
|
LocalTime |
LocalTime.with(TemporalField field,
long newValue) |
Returns a copy of this time with the specified field set to a new value.
|
LocalTime |
LocalTime.withHour(int hour) |
Returns a copy of this LocalTime with the hour-of-day altered.
|
LocalTime |
LocalTime.withMinute(int minute) |
Returns a copy of this LocalTime with the minute-of-hour altered.
|
LocalTime |
LocalTime.withNano(int nanoOfSecond) |
Returns a copy of this LocalTime with the nano-of-second altered.
|
LocalTime |
LocalTime.withSecond(int second) |
Returns a copy of this LocalTime with the second-of-minute altered.
|