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. HOURS
Constants for the local time of each hour.static LocalTime
LocalTime. MIDDAY
Constant for the local time of midday, 12:00.static LocalTime
LocalTime. MIDNIGHT
Constant for the local time of midnight, 00:00.private LocalTime
LocalDateTime. time
The time part.private LocalTime
LocalTime.Overflow. time
The time after the addition.private LocalTime
OffsetTime. time
The 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. INSTANCE
Methods in javax.time.calendar that return LocalTime Modifier and Type Method Description LocalTime
LocalDateTime. adjustTime(LocalTime time)
Adjusts a time to have the value of the time part of this object.LocalTime
LocalTime. adjustTime(LocalTime time)
Adjusts a time to have the value of this time.LocalTime
OffsetDateTime. adjustTime(LocalTime time)
Adjusts a time to have the value of the time part of this object.LocalTime
OffsetTime. adjustTime(LocalTime time)
Adjusts a time to have the value of the time part of this object.LocalTime
TimeAdjuster. adjustTime(LocalTime time)
Adjusts the input time returning the adjusted time.private static LocalTime
LocalTime. create(int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond)
Creates a local time from the hour, minute, second and nanosecond fields.protected LocalTime
LocalTime.Rule. derive(Calendrical calendrical)
LocalTime
LocalTime.Overflow. getResultTime()
Gets the time that was the result of the calculation.LocalTime
LocalTime. minus(PeriodProvider periodProvider)
Returns a copy of thisLocalTime
with the specified period subtracted.LocalTime
LocalTime. minus(Duration duration)
Returns a copy of thisLocalTime
with the specified duration subtracted.LocalTime
LocalTime. minusHours(long hours)
Returns a copy of thisLocalTime
with the specified period in hours subtracted.LocalTime
LocalTime. minusMinutes(long minutes)
Returns a copy of thisLocalTime
with the specified period in minutes subtracted.LocalTime
LocalTime. minusNanos(long nanos)
Returns a copy of thisLocalTime
with the specified period in nanoseconds subtracted.LocalTime
LocalTime. minusSeconds(long seconds)
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. of(int hourOfDay, int minuteOfHour)
Obtains an instance ofLocalTime
from an hour and minute.static LocalTime
LocalTime. of(int hourOfDay, int minuteOfHour, int secondOfMinute)
Obtains an instance ofLocalTime
from an hour, minute and second.static LocalTime
LocalTime. of(int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond)
Obtains an instance ofLocalTime
from an hour, minute, second and nanosecond.static LocalTime
LocalTime. of(TimeProvider timeProvider)
Obtains an instance ofLocalTime
from a time provider.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. ofSecondOfDay(long secondOfDay, int nanoOfSecond)
Obtains an instance ofLocalTime
from a second-of-day value, with associated nanos of second.static LocalTime
LocalTime. parse(java.lang.String text)
Obtains an instance ofLocalTime
from a text string such as10:15
.static LocalTime
LocalTime. parse(java.lang.String text, DateTimeFormatter formatter)
Obtains an instance ofLocalTime
from a text string using a specific formatter.LocalTime
LocalTime. plus(PeriodProvider periodProvider)
Returns a copy of thisLocalTime
with the specified period added.LocalTime
LocalTime. plus(Duration duration)
Returns a copy of thisLocalTime
with the specified duration added.LocalTime
LocalTime. plusHours(long hours)
Returns a copy of thisLocalTime
with the specified period in hours added.LocalTime
LocalTime. plusMinutes(long minutes)
Returns a copy of thisLocalTime
with the specified period in minutes added.LocalTime
LocalTime. plusNanos(long nanos)
Returns a copy of thisLocalTime
with the specified period in nanoseconds added.LocalTime
LocalTime. plusSeconds(long seconds)
Returns a copy of thisLocalTime
with the specified period in seconds added.LocalTime
Clock. time()
Gets the current time with maximum resolution of up to nanoseconds.LocalTime
Clock. timeToMinute()
Gets the current time with a resolution of minutes.LocalTime
Clock. timeToSecond()
Gets the current time with a resolution of seconds.LocalTime
LocalDateTime. toLocalTime()
Converts this date-time to aLocalTime
.LocalTime
LocalTime. toLocalTime()
Converts this time to aLocalTime
, trivially returningthis
.LocalTime
OffsetDateTime. toLocalTime()
Converts this date-time to aLocalTime
.LocalTime
OffsetTime. toLocalTime()
Converts this time to aLocalTime
.LocalTime
TimeProvider. toLocalTime()
Returns an instance ofLocalTime
initialized from the state of this object.LocalTime
ZonedDateTime. toLocalTime()
Converts thisZonedDateTime
to aLocalTime
.LocalTime
LocalTime. with(TimeAdjuster adjuster)
Returns a copy of thisLocalTime
with the time altered using the adjuster.LocalTime
LocalTime. withHourOfDay(int hourOfDay)
Returns a copy of thisLocalTime
with the hour-of-day value altered.LocalTime
LocalTime. withMinuteOfHour(int minuteOfHour)
Returns a copy of thisLocalTime
with the minute-of-hour value altered.LocalTime
LocalTime. withNanoOfSecond(int nanoOfSecond)
Returns a copy of thisLocalTime
with the nano-of-second value altered.LocalTime
LocalTime. withSecondOfMinute(int secondOfMinute)
Returns a copy of thisLocalTime
with 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 LocalTime
LocalDateTime. adjustTime(LocalTime time)
Adjusts a time to have the value of the time part of this object.LocalTime
LocalTime. adjustTime(LocalTime time)
Adjusts a time to have the value of this time.LocalTime
OffsetDateTime. adjustTime(LocalTime time)
Adjusts a time to have the value of the time part of this object.LocalTime
OffsetTime. adjustTime(LocalTime time)
Adjusts a time to have the value of the time part of this object.LocalTime
TimeAdjuster. adjustTime(LocalTime time)
Adjusts the input time returning the adjusted time.LocalDateTime
LocalDate. atTime(LocalTime localTime)
Returns a local date-time formed from this date at the specified time.OffsetDateTime
OffsetDate. atTime(LocalTime time)
Returns an offset date-time formed from this date at the specified time.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.private LocalDateTime
LocalDateTime. 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) LocalTime
TZDBZoneRulesCompiler.TZDBMonthDayTime. time
The time of the cutover.private LocalTime
ZoneOffsetTransitionRule. time
The cutover time in the 'before' offset.private LocalTime
ZoneRulesBuilder.TZRule. time
The local time.Methods in javax.time.calendar.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 javax.time.calendar.zone with parameters of type LocalTime Modifier and Type Method Description (package private) void
ZoneRulesBuilder.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.ZoneRulesBuilder
ZoneRulesBuilder. 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.ZoneRulesBuilder
ZoneRulesBuilder. 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 ZoneOffsetTransitionRule
ZoneOffsetTransitionRule. 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.
-