Uses of Class
javax.time.calendar.LocalTime
-
Packages that use LocalTime Package Description javax.time.calendar Provides classes to manage the human time scale including date, time, date-time and time-zone representations.javax.time.calendar.zone Provides classes to implement time-zones and their rules. -
-
Uses of LocalTime in javax.time.calendar
Fields in javax.time.calendar declared as LocalTime Modifier and Type Field Description private static LocalTime[]LocalTime. HOURSConstants for the local time of each hour.static LocalTimeLocalTime. MIDDAYConstant for the local time of midday, 12:00.static LocalTimeLocalTime. MIDNIGHTConstant for the local time of midnight, 00:00.private LocalTimeLocalDateTime. timeThe time part.private LocalTimeLocalTime.Overflow. timeThe time after the addition.private LocalTimeOffsetTime. timeThe local time, never null.Fields in javax.time.calendar with type parameters of type LocalTime Modifier and Type Field Description private static CalendricalRule<LocalTime>LocalTime.Rule. INSTANCEMethods in javax.time.calendar that return LocalTime Modifier and Type Method Description LocalTimeLocalDateTime. adjustTime(LocalTime time)Adjusts a time to have the value of the time part of this object.LocalTimeLocalTime. adjustTime(LocalTime time)Adjusts a time to have the value of this time.LocalTimeOffsetDateTime. adjustTime(LocalTime time)Adjusts a time to have the value of the time part of this object.LocalTimeOffsetTime. adjustTime(LocalTime time)Adjusts a time to have the value of the time part of this object.LocalTimeTimeAdjuster. adjustTime(LocalTime time)Adjusts the input time returning the adjusted time.private static LocalTimeLocalTime. create(int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond)Creates a local time from the hour, minute, second and nanosecond fields.protected LocalTimeLocalTime.Rule. derive(Calendrical calendrical)LocalTimeLocalTime.Overflow. getResultTime()Gets the time that was the result of the calculation.LocalTimeLocalTime. minus(PeriodProvider periodProvider)Returns a copy of thisLocalTimewith the specified period subtracted.LocalTimeLocalTime. minus(Duration duration)Returns a copy of thisLocalTimewith the specified duration subtracted.LocalTimeLocalTime. minusHours(long hours)Returns a copy of thisLocalTimewith the specified period in hours subtracted.LocalTimeLocalTime. minusMinutes(long minutes)Returns a copy of thisLocalTimewith the specified period in minutes subtracted.LocalTimeLocalTime. minusNanos(long nanos)Returns a copy of thisLocalTimewith the specified period in nanoseconds subtracted.LocalTimeLocalTime. minusSeconds(long seconds)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 LocalTimeLocalTime. now(Clock clock)Obtains the current time from the specified clock.static LocalTimeLocalTime. of(int hourOfDay, int minuteOfHour)Obtains an instance ofLocalTimefrom an hour and minute.static LocalTimeLocalTime. of(int hourOfDay, int minuteOfHour, int secondOfMinute)Obtains an instance ofLocalTimefrom an hour, minute and second.static LocalTimeLocalTime. of(int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond)Obtains an instance ofLocalTimefrom an hour, minute, second and nanosecond.static LocalTimeLocalTime. of(TimeProvider timeProvider)Obtains an instance ofLocalTimefrom a time provider.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.static LocalTimeLocalTime. ofSecondOfDay(long secondOfDay, int nanoOfSecond)Obtains an instance ofLocalTimefrom a second-of-day value, with associated nanos of second.static LocalTimeLocalTime. parse(java.lang.String text)Obtains an instance ofLocalTimefrom a text string such as10:15.static LocalTimeLocalTime. parse(java.lang.String text, DateTimeFormatter formatter)Obtains an instance ofLocalTimefrom a text string using a specific formatter.LocalTimeLocalTime. plus(PeriodProvider periodProvider)Returns a copy of thisLocalTimewith the specified period added.LocalTimeLocalTime. plus(Duration duration)Returns a copy of thisLocalTimewith the specified duration added.LocalTimeLocalTime. plusHours(long hours)Returns a copy of thisLocalTimewith the specified period in hours added.LocalTimeLocalTime. plusMinutes(long minutes)Returns a copy of thisLocalTimewith the specified period in minutes added.LocalTimeLocalTime. plusNanos(long nanos)Returns a copy of thisLocalTimewith the specified period in nanoseconds added.LocalTimeLocalTime. plusSeconds(long seconds)Returns a copy of thisLocalTimewith the specified period in seconds added.LocalTimeClock. time()Gets the current time with maximum resolution of up to nanoseconds.LocalTimeClock. timeToMinute()Gets the current time with a resolution of minutes.LocalTimeClock. timeToSecond()Gets the current time with a resolution of seconds.LocalTimeLocalDateTime. toLocalTime()Converts this date-time to aLocalTime.LocalTimeLocalTime. toLocalTime()Converts this time to aLocalTime, trivially returningthis.LocalTimeOffsetDateTime. toLocalTime()Converts this date-time to aLocalTime.LocalTimeOffsetTime. toLocalTime()Converts this time to aLocalTime.LocalTimeTimeProvider. toLocalTime()Returns an instance ofLocalTimeinitialized from the state of this object.LocalTimeZonedDateTime. toLocalTime()Converts thisZonedDateTimeto aLocalTime.LocalTimeLocalTime. with(TimeAdjuster adjuster)Returns a copy of thisLocalTimewith the time altered using the adjuster.LocalTimeLocalTime. withHourOfDay(int hourOfDay)Returns a copy of thisLocalTimewith the hour-of-day value altered.LocalTimeLocalTime. withMinuteOfHour(int minuteOfHour)Returns a copy of thisLocalTimewith the minute-of-hour value altered.LocalTimeLocalTime. withNanoOfSecond(int nanoOfSecond)Returns a copy of thisLocalTimewith the nano-of-second value altered.LocalTimeLocalTime. withSecondOfMinute(int secondOfMinute)Returns a copy of thisLocalTimewith the second-of-minute value altered.Methods in javax.time.calendar that return types with arguments of type LocalTime Modifier and Type Method Description static CalendricalRule<LocalTime>LocalTime. rule()Gets the rule forLocalTime.Methods in javax.time.calendar with parameters of type LocalTime Modifier and Type Method Description LocalTimeLocalDateTime. adjustTime(LocalTime time)Adjusts a time to have the value of the time part of this object.LocalTimeLocalTime. adjustTime(LocalTime time)Adjusts a time to have the value of this time.LocalTimeOffsetDateTime. adjustTime(LocalTime time)Adjusts a time to have the value of the time part of this object.LocalTimeOffsetTime. adjustTime(LocalTime time)Adjusts a time to have the value of the time part of this object.LocalTimeTimeAdjuster. adjustTime(LocalTime time)Adjusts the input time returning the adjusted time.LocalDateTimeLocalDate. atTime(LocalTime localTime)Returns a local date-time formed from this date at the specified time.OffsetDateTimeOffsetDate. atTime(LocalTime time)Returns an offset date-time formed from this date at the specified time.intLocalTime. compareTo(LocalTime other)Compares thisLocalTimeto another time.booleanLocalTime. isAfter(LocalTime other)Checks if thisLocalTimeis after the specified time.booleanLocalTime. isBefore(LocalTime other)Checks if thisLocalTimeis before the specified time.private LocalDateTimeLocalDateTime. with(LocalDate newDate, LocalTime newTime)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 javax.time.calendar with parameters of type LocalTime Constructor Description LocalDateTime(LocalDate date, LocalTime time)Constructor.OffsetTime(LocalTime time, ZoneOffset offset)Constructor.Overflow(LocalTime time, long days)Constructor. -
Uses of LocalTime in javax.time.calendar.zone
Fields in javax.time.calendar.zone declared as LocalTime Modifier and Type Field Description (package private) LocalTimeTZDBZoneRulesCompiler.TZDBMonthDayTime. timeThe time of the cutover.private LocalTimeZoneOffsetTransitionRule. timeThe cutover time in the 'before' offset.private LocalTimeZoneRulesBuilder.TZRule. timeThe local time.Methods in javax.time.calendar.zone that return LocalTime Modifier and Type Method Description LocalTimeZoneOffsetTransitionRule. getLocalTime()Gets the local time of day of the transition which must be checked withZoneOffsetTransitionRule.isMidnightEndOfDay().Methods in javax.time.calendar.zone with parameters of type LocalTime Modifier and Type Method Description (package private) voidZoneRulesBuilder.TZWindow. addRule(int startYear, int endYear, MonthOfYear month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneRulesBuilder.TimeDefinition timeDefinition, Period savingAmount)Adds a rule to the current window.ZoneRulesBuilderZoneRulesBuilder. addRuleToWindow(int startYear, int endYear, MonthOfYear month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneRulesBuilder.TimeDefinition timeDefinition, Period savingAmount)Adds a multi-year transition rule to the current window.ZoneRulesBuilderZoneRulesBuilder. addRuleToWindow(int year, MonthOfYear month, int dayOfMonthIndicator, LocalTime time, boolean timeEndOfDay, ZoneRulesBuilder.TimeDefinition timeDefinition, Period savingAmount)Adds a single transition rule to the current window.static ZoneOffsetTransitionRuleZoneOffsetTransitionRule. of(MonthOfYear month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneRulesBuilder.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter)Creates an instance defining the yearly rule to create transitions between two offsets.Constructors in javax.time.calendar.zone with parameters of type LocalTime Constructor Description TZRule(int year, MonthOfYear month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneRulesBuilder.TimeDefinition timeDefinition, Period savingAfter)Constructor.ZoneOffsetTransitionRule(MonthOfYear month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneRulesBuilder.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter)Creates an instance defining the yearly rule to create transitions between two offsets.
-