Uses of Class
org.threeten.bp.LocalTime
Packages that use LocalTime
Package
Description
The main API for dates, times, instants, and durations.
Support for calendar systems other than the default ISO.
Provides classes to print and parse dates and times.
Access to date and time using fields and units.
Support for time-zones and their rules.
-
Uses of LocalTime in org.threeten.bp
Fields in org.threeten.bp declared as LocalTimeModifier and TypeFieldDescriptionprivate static final LocalTime[]LocalTime.HOURSConstants for the local time of each hour.static final LocalTimeLocalTime.MAXThe maximum supportedLocalTime, '23:59:59.999999999'.static final LocalTimeLocalTime.MIDNIGHTThe time of midnight at the start of the day, '00:00'.static final LocalTimeLocalTime.MINThe minimum supportedLocalTime, '00:00'.static final LocalTimeLocalTime.NOONThe time of noon in the middle of the day, '12:00'.private final LocalTimeLocalDateTime.timeThe time part.private final LocalTimeOffsetTime.timeThe local date-time.Fields in org.threeten.bp with type parameters of type LocalTimeModifier and TypeFieldDescriptionstatic final TemporalQuery<LocalTime>LocalTime.FROMSimulate JDK 8 method reference LocalTime::from.Methods in org.threeten.bp that return LocalTimeModifier and TypeMethodDescriptionprivate static LocalTimeLocalTime.create(int hour, int minute, int second, int nanoOfSecond) Creates a local time from the hour, minute, second and nanosecond fields.static LocalTimeLocalTime.from(TemporalAccessor temporal) Obtains an instance ofLocalTimefrom a temporal object.LocalTime.minus(long amountToSubtract, TemporalUnit unit) Returns a copy of this time with the specified period subtracted.LocalTime.minus(TemporalAmount amount) Returns a copy of this time with the specified period subtracted.LocalTime.minusHours(long hoursToSubtract) Returns a copy of thisLocalTimewith the specified period in hours subtracted.LocalTime.minusMinutes(long minutesToSubtract) Returns a copy of thisLocalTimewith the specified period in minutes subtracted.LocalTime.minusNanos(long nanosToSubtract) Returns a copy of thisLocalTimewith the specified period in nanoseconds subtracted.LocalTime.minusSeconds(long secondsToSubtract) Returns a copy of thisLocalTimewith the specified period in seconds subtracted.static LocalTimeLocalTime.now()Obtains the current time from the system clock in the default time-zone.static LocalTimeObtains the current time from the specified clock.static LocalTimeObtains the current time from the system clock in the specified time-zone.static LocalTimeLocalTime.of(int hour, int minute) Obtains an instance ofLocalTimefrom an hour and minute.static LocalTimeLocalTime.of(int hour, int minute, int second) Obtains an instance ofLocalTimefrom an hour, minute and second.static LocalTimeLocalTime.of(int hour, int minute, int second, int nanoOfSecond) Obtains an instance ofLocalTimefrom an hour, minute, second and nanosecond.static LocalTimeLocalTime.ofNanoOfDay(long nanoOfDay) Obtains an instance ofLocalTimefrom a nanos-of-day value.static LocalTimeLocalTime.ofSecondOfDay(long secondOfDay) Obtains an instance ofLocalTimefrom a second-of-day value.(package private) static LocalTimeLocalTime.ofSecondOfDay(long secondOfDay, int nanoOfSecond) Obtains an instance ofLocalTimefrom a second-of-day value, with associated nanos of second.static LocalTimeLocalTime.parse(CharSequence text) Obtains an instance ofLocalTimefrom a text string such as10:15.static LocalTimeLocalTime.parse(CharSequence text, DateTimeFormatter formatter) Obtains an instance ofLocalTimefrom a text string using a specific formatter.LocalTime.plus(long amountToAdd, TemporalUnit unit) Returns a copy of this time with the specified period added.LocalTime.plus(TemporalAmount amount) Returns a copy of this date with the specified period added.LocalTime.plusHours(long hoursToAdd) Returns a copy of thisLocalTimewith the specified period in hours added.LocalTime.plusMinutes(long minutesToAdd) Returns a copy of thisLocalTimewith the specified period in minutes added.LocalTime.plusNanos(long nanosToAdd) Returns a copy of thisLocalTimewith the specified period in nanoseconds added.LocalTime.plusSeconds(long secondstoAdd) Returns a copy of thisLocalTimewith the specified period in seconds added.(package private) static LocalTimeLocalTime.readExternal(DataInput in) static LocalTimeDateTimeUtils.toLocalTime(Time sqlTime) Converts ajava.sql.Timeto aLocalTime.LocalDateTime.toLocalTime()Gets theLocalTimepart of this date-time.OffsetDateTime.toLocalTime()Gets theLocalTimepart of this date-time.OffsetTime.toLocalTime()Gets theLocalTimepart of this date-time.ZonedDateTime.toLocalTime()Gets theLocalTimepart of this date-time.LocalTime.truncatedTo(TemporalUnit unit) Returns a copy of thisLocalTimewith the time truncated.LocalTime.with(TemporalAdjuster adjuster) Returns an adjusted copy of this time.LocalTime.with(TemporalField field, long newValue) Returns a copy of this time with the specified field set to a new value.LocalTime.withHour(int hour) Returns a copy of thisLocalTimewith the hour-of-day value altered.LocalTime.withMinute(int minute) Returns a copy of thisLocalTimewith the minute-of-hour value altered.LocalTime.withNano(int nanoOfSecond) Returns a copy of thisLocalTimewith the nano-of-second value altered.LocalTime.withSecond(int second) Returns a copy of thisLocalTimewith the second-of-minute value altered.Methods in org.threeten.bp with parameters of type LocalTimeModifier and TypeMethodDescriptionCombines this date with a time to create aLocalDateTime.intCompares thisLocalTimeto another time.booleanChecks if thisLocalTimeis after the specified time.booleanChecks if thisLocalTimeis before the specified time.static LocalDateTimeObtains an instance ofLocalDateTimefrom a date and time.static OffsetDateTimeOffsetDateTime.of(LocalDate date, LocalTime time, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom a date, time and offset.static OffsetTimeOffsetTime.of(LocalTime time, ZoneOffset offset) Obtains an instance ofOffsetTimefrom a local time and an offset.static ZonedDateTimeObtains an instance ofZonedDateTimefrom a local date and time.static TimeConverts aLocalTimeto ajava.sql.Time.private LocalDateTimeReturns a copy of this date-time with the new date and time, checking to see if a new object is in fact required.private OffsetTimeOffsetTime.with(LocalTime time, ZoneOffset offset) Returns a new time based on this one, returningthiswhere possible.Constructors in org.threeten.bp with parameters of type LocalTimeModifierConstructorDescriptionprivateLocalDateTime(LocalDate date, LocalTime time) Constructor.privateOffsetTime(LocalTime time, ZoneOffset offset) Constructor. -
Uses of LocalTime in org.threeten.bp.chrono
Fields in org.threeten.bp.chrono declared as LocalTimeModifier and TypeFieldDescriptionprivate final LocalTimeChronoLocalDateTimeImpl.timeThe time part.Methods in org.threeten.bp.chrono that return LocalTimeModifier and TypeMethodDescriptionabstract LocalTimeChronoLocalDateTime.toLocalTime()Gets the local time part of this date-time.ChronoLocalDateTimeImpl.toLocalTime()ChronoZonedDateTime.toLocalTime()Gets the local time part of this date-time.Methods in org.threeten.bp.chrono with parameters of type LocalTimeModifier and TypeMethodDescriptionCombines this date with a time to create aChronoLocalDateTime.final ChronoLocalDateTime<HijrahDate>final ChronoLocalDateTime<JapaneseDate>final ChronoLocalDateTime<MinguoDate>(package private) static <R extends ChronoLocalDate>
ChronoLocalDateTimeImpl<R>Obtains an instance ofChronoLocalDateTimefrom a date and time.private ChronoLocalDateTimeImpl<D>Returns a copy of this date-time with the new date and time, checking to see if a new object is in fact required.Constructors in org.threeten.bp.chrono with parameters of type LocalTimeModifierConstructorDescriptionprivateChronoLocalDateTimeImpl(D date, LocalTime time) Constructor. -
Uses of LocalTime in org.threeten.bp.format
Fields in org.threeten.bp.format declared as LocalTimeMethods in org.threeten.bp.format with parameters of type LocalTimeModifier and TypeMethodDescription(package private) voidprivate voidDateTimeBuilder.resolveMakeChanges(TemporalField targetField, LocalTime time) -
Uses of LocalTime in org.threeten.bp.temporal
Fields in org.threeten.bp.temporal with type parameters of type LocalTimeModifier and TypeFieldDescription(package private) static final TemporalQuery<LocalTime>TemporalQueries.LOCAL_TIMEMethods in org.threeten.bp.temporal that return types with arguments of type LocalTimeModifier and TypeMethodDescriptionstatic final TemporalQuery<LocalTime>TemporalQueries.localTime()A query forLocalTimereturning null if not found. -
Uses of LocalTime in org.threeten.bp.zone
Fields in org.threeten.bp.zone declared as LocalTimeModifier and TypeFieldDescription(package private) LocalTimeTzdbZoneRulesCompiler.TZDBMonthDayTime.timeThe time of the cutover.private final LocalTimeZoneOffsetTransitionRule.timeThe cutover time in the 'before' offset.private LocalTimeZoneRulesBuilder.TZRule.timeThe local time.Methods in org.threeten.bp.zone that return LocalTimeModifier and TypeMethodDescriptionZoneOffsetTransitionRule.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 LocalTimeModifier and TypeMethodDescription(package private) voidZoneRulesBuilder.TZWindow.addRule(int startYear, int endYear, Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, int adjustDays, ZoneOffsetTransitionRule.TimeDefinition timeDefinition, int savingAmountSecs) Adds a rule to the current window.ZoneRulesBuilder.addRuleToWindow(int startYear, int endYear, Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneOffsetTransitionRule.TimeDefinition timeDefinition, int savingAmountSecs) Adds a multi-year transition rule to the current window.(package private) ZoneRulesBuilderZoneRulesBuilder.addRuleToWindow(int startYear, int endYear, Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, int adjustDays, ZoneOffsetTransitionRule.TimeDefinition timeDefinition, int savingAmountSecs) ZoneRulesBuilder.addRuleToWindow(int year, Month month, int dayOfMonthIndicator, LocalTime time, boolean timeEndOfDay, ZoneOffsetTransitionRule.TimeDefinition timeDefinition, int savingAmountSecs) Adds a single transition rule to the current window.static ZoneOffsetTransitionRuleZoneOffsetTransitionRule.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.Constructors in org.threeten.bp.zone with parameters of type LocalTimeModifierConstructorDescription(package private)TZRule(int year, Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, int adjustDays, ZoneOffsetTransitionRule.TimeDefinition timeDefinition, int savingAfterSecs) Constructor.(package private)ZoneOffsetTransitionRule(Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, int adjustDays, ZoneOffsetTransitionRule.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter) Creates an instance defining the yearly rule to create transitions between two offsets.