Uses of Class
org.threeten.bp.LocalTime
-
Packages that use LocalTime Package Description org.threeten.bp The main API for dates, times, instants, and durations.org.threeten.bp.chrono Support for calendar systems other than the default ISO.org.threeten.bp.temporal Access to date and time using fields and units.org.threeten.bp.zone Support for time-zones and their rules. -
-
Uses of LocalTime in org.threeten.bp
Fields in org.threeten.bp declared as LocalTime Modifier and Type Field Description static LocalTime
LocalTime. MAX
The maximum supportedLocalTime
, '23:59:59.999999999'.static LocalTime
LocalTime. MIDNIGHT
The time of midnight at the start of the day, '00:00'.static LocalTime
LocalTime. MIN
The minimum supportedLocalTime
, '00:00'.static LocalTime
LocalTime. NOON
The time of noon in the middle of the day, '12:00'.Fields in org.threeten.bp with type parameters of type LocalTime Modifier and Type Field Description static TemporalQuery<LocalTime>
LocalTime. FROM
Simulate JDK 8 method reference LocalTime::from.Methods in org.threeten.bp that return LocalTime Modifier and Type Method Description static LocalTime
LocalTime. from(TemporalAccessor temporal)
Obtains an instance ofLocalTime
from a temporal object.LocalTime
LocalTime. minus(long amountToSubtract, TemporalUnit unit)
Returns a copy of this time with the specified period subtracted.LocalTime
LocalTime. minus(TemporalAmount amount)
Returns a copy of this time with the specified period subtracted.LocalTime
LocalTime. minusHours(long hoursToSubtract)
Returns a copy of thisLocalTime
with the specified period in hours subtracted.LocalTime
LocalTime. minusMinutes(long minutesToSubtract)
Returns a copy of thisLocalTime
with the specified period in minutes subtracted.LocalTime
LocalTime. minusNanos(long nanosToSubtract)
Returns a copy of thisLocalTime
with the specified period in nanoseconds subtracted.LocalTime
LocalTime. minusSeconds(long secondsToSubtract)
Returns a copy of thisLocalTime
with the specified period in 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 ofLocalTime
from an hour and minute.static LocalTime
LocalTime. of(int hour, int minute, int second)
Obtains an instance ofLocalTime
from an hour, minute and second.static LocalTime
LocalTime. of(int hour, int minute, int second, int nanoOfSecond)
Obtains an instance ofLocalTime
from an hour, minute, second and nanosecond.static LocalTime
LocalTime. ofNanoOfDay(long nanoOfDay)
Obtains an instance ofLocalTime
from a nanos-of-day value.static LocalTime
LocalTime. ofSecondOfDay(long secondOfDay)
Obtains an instance ofLocalTime
from a second-of-day value.static LocalTime
LocalTime. parse(CharSequence text)
Obtains an instance ofLocalTime
from a text string such as10:15
.static LocalTime
LocalTime. parse(CharSequence text, DateTimeFormatter formatter)
Obtains an instance ofLocalTime
from a text string using a specific formatter.LocalTime
LocalTime. plus(long amountToAdd, TemporalUnit unit)
Returns a copy of this time with the specified period added.LocalTime
LocalTime. plus(TemporalAmount amount)
Returns a copy of this date with the specified period added.LocalTime
LocalTime. plusHours(long hoursToAdd)
Returns a copy of thisLocalTime
with the specified period in hours added.LocalTime
LocalTime. plusMinutes(long minutesToAdd)
Returns a copy of thisLocalTime
with the specified period in minutes added.LocalTime
LocalTime. plusNanos(long nanosToAdd)
Returns a copy of thisLocalTime
with the specified period in nanoseconds added.LocalTime
LocalTime. plusSeconds(long secondstoAdd)
Returns a copy of thisLocalTime
with the specified period in seconds added.static LocalTime
DateTimeUtils. toLocalTime(Time sqlTime)
Converts ajava.sql.Time
to aLocalTime
.LocalTime
LocalDateTime. toLocalTime()
Gets theLocalTime
part of this date-time.LocalTime
OffsetDateTime. toLocalTime()
Gets theLocalTime
part of this date-time.LocalTime
OffsetTime. toLocalTime()
Gets theLocalTime
part of this date-time.LocalTime
ZonedDateTime. toLocalTime()
Gets theLocalTime
part of this date-time.LocalTime
LocalTime. truncatedTo(TemporalUnit unit)
Returns a copy of thisLocalTime
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 thisLocalTime
with the hour-of-day value altered.LocalTime
LocalTime. withMinute(int minute)
Returns a copy of thisLocalTime
with the minute-of-hour value altered.LocalTime
LocalTime. withNano(int nanoOfSecond)
Returns a copy of thisLocalTime
with the nano-of-second value altered.LocalTime
LocalTime. withSecond(int second)
Returns a copy of thisLocalTime
with the second-of-minute value altered.Methods in org.threeten.bp with parameters of type LocalTime Modifier and Type Method Description LocalDateTime
LocalDate. atTime(LocalTime time)
Combines this date with a time to create aLocalDateTime
.int
LocalTime. compareTo(LocalTime other)
Compares thisLocalTime
to another time.boolean
LocalTime. isAfter(LocalTime other)
Checks if thisLocalTime
is after the specified time.boolean
LocalTime. isBefore(LocalTime other)
Checks if thisLocalTime
is before the specified time.static LocalDateTime
LocalDateTime. of(LocalDate date, LocalTime time)
Obtains an instance ofLocalDateTime
from a date and time.static OffsetDateTime
OffsetDateTime. of(LocalDate date, LocalTime time, ZoneOffset offset)
Obtains an instance ofOffsetDateTime
from a date, time and offset.static OffsetTime
OffsetTime. of(LocalTime time, ZoneOffset offset)
Obtains an instance ofOffsetTime
from a local time and an offset.static ZonedDateTime
ZonedDateTime. of(LocalDate date, LocalTime time, ZoneId zone)
Obtains an instance ofZonedDateTime
from a local date and time.static Time
DateTimeUtils. toSqlTime(LocalTime time)
Converts aLocalTime
to ajava.sql.Time
. -
Uses of LocalTime in org.threeten.bp.chrono
Methods in org.threeten.bp.chrono that return LocalTime Modifier and Type Method Description abstract LocalTime
ChronoLocalDateTime. toLocalTime()
Gets the local time part of this date-time.LocalTime
ChronoZonedDateTime. toLocalTime()
Gets the local time part of this date-time.Methods in org.threeten.bp.chrono with parameters of type LocalTime Modifier and Type Method Description ChronoLocalDateTime<?>
ChronoLocalDate. atTime(LocalTime localTime)
Combines this date with a time to create aChronoLocalDateTime
.ChronoLocalDateTime<HijrahDate>
HijrahDate. atTime(LocalTime localTime)
ChronoLocalDateTime<JapaneseDate>
JapaneseDate. atTime(LocalTime localTime)
ChronoLocalDateTime<MinguoDate>
MinguoDate. atTime(LocalTime localTime)
ChronoLocalDateTime<ThaiBuddhistDate>
ThaiBuddhistDate. atTime(LocalTime localTime)
-
Uses of LocalTime in org.threeten.bp.temporal
Methods in org.threeten.bp.temporal that return types with arguments of type LocalTime Modifier and Type Method Description static TemporalQuery<LocalTime>
TemporalQueries. localTime()
A query forLocalTime
returning null if not found. -
Uses of LocalTime in org.threeten.bp.zone
Methods in org.threeten.bp.zone that return LocalTime Modifier and Type Method Description LocalTime
ZoneOffsetTransitionRule. getLocalTime()
Gets the local time of day of the transition which must be checked withZoneOffsetTransitionRule.isMidnightEndOfDay()
.Methods in org.threeten.bp.zone with parameters of type LocalTime Modifier and Type Method Description static ZoneOffsetTransitionRule
ZoneOffsetTransitionRule. of(Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneOffsetTransitionRule.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter)
Obtains an instance defining the yearly rule to create transitions between two offsets.
-