Uses of Class
org.joda.time.LocalTime
Packages that use LocalTime
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
Provides printing and parsing support for instants and durations.
-
Uses of LocalTime in org.joda.time
Fields in org.joda.time declared as LocalTimeModifier and TypeFieldDescriptionstatic final LocalTime
LocalTime.MIDNIGHT
Constant for midnight.Methods in org.joda.time that return LocalTimeModifier and TypeMethodDescriptionLocalTime.Property.addCopy
(int value) Adds to this field in a copy of this LocalTime.LocalTime.Property.addCopy
(long value) Adds to this field in a copy of this LocalTime.LocalTime.Property.addNoWrapToCopy
(int value) Adds to this field in a copy of this LocalTime.LocalTime.Property.addWrapFieldToCopy
(int value) Adds to this field, possibly wrapped, in a copy of this LocalTime.static LocalTime
LocalTime.fromCalendarFields
(Calendar calendar) Constructs a LocalTime from ajava.util.Calendar
using exactly the same field values.static LocalTime
LocalTime.fromDateFields
(Date date) Constructs a LocalTime from ajava.util.Date
using exactly the same field values.static LocalTime
LocalTime.fromMillisOfDay
(long millisOfDay) Constructs a LocalTime from the specified millis of day using the ISO chronology.static LocalTime
LocalTime.fromMillisOfDay
(long millisOfDay, Chronology chrono) Constructs a LocalTime from the specified millis of day using the specified chronology.LocalTime.Property.getLocalTime()
Gets the LocalTime object linked to this property.LocalTime.minus
(ReadablePeriod period) Returns a copy of this time with the specified period taken away.LocalTime.minusHours
(int hours) Returns a copy of this time minus the specified number of hours.LocalTime.minusMillis
(int millis) Returns a copy of this time minus the specified number of millis.LocalTime.minusMinutes
(int minutes) Returns a copy of this time minus the specified number of minutes.LocalTime.minusSeconds
(int seconds) Returns a copy of this time minus the specified number of seconds.static LocalTime
LocalTime.now()
Obtains aLocalTime
set to the current system millisecond time usingISOChronology
in the default time zone.static LocalTime
LocalTime.now
(Chronology chronology) Obtains aLocalTime
set to the current system millisecond time using the specified chronology.static LocalTime
LocalTime.now
(DateTimeZone zone) Obtains aLocalTime
set to the current system millisecond time usingISOChronology
in the specified time zone.static LocalTime
Parses aLocalTime
from the specified string.static LocalTime
LocalTime.parse
(String str, DateTimeFormatter formatter) Parses aLocalTime
from the specified string using a formatter.LocalTime.plus
(ReadablePeriod period) Returns a copy of this time with the specified period added.LocalTime.plusHours
(int hours) Returns a copy of this time plus the specified number of hours.LocalTime.plusMillis
(int millis) Returns a copy of this time plus the specified number of millis.LocalTime.plusMinutes
(int minutes) Returns a copy of this time plus the specified number of minutes.LocalTime.plusSeconds
(int seconds) Returns a copy of this time plus the specified number of seconds.LocalTime.Property.roundCeilingCopy()
Rounds to the highest whole unit of this field on a copy of this LocalTime.LocalTime.Property.roundFloorCopy()
Rounds to the lowest whole unit of this field on a copy of this LocalTime.LocalTime.Property.roundHalfCeilingCopy()
Rounds to the nearest whole unit of this field on a copy of this LocalTime, favoring the ceiling if halfway.LocalTime.Property.roundHalfEvenCopy()
Rounds to the nearest whole unit of this field on a copy of this LocalTime.LocalTime.Property.roundHalfFloorCopy()
Rounds to the nearest whole unit of this field on a copy of this LocalTime, favoring the floor if halfway.LocalTime.Property.setCopy
(int value) Sets this field in a copy of the LocalTime.Sets this field in a copy of the LocalTime to a parsed text value.Sets this field in a copy of the LocalTime to a parsed text value.DateTime.toLocalTime()
Converts this object to aLocalTime
with the same time and chronology.LocalDateTime.toLocalTime()
Converts this object to a LocalTime with the same time and chronology.TimeOfDay.toLocalTime()
Deprecated.Converts this object to a LocalTime with the same time and chronology.LocalTime.withField
(DateTimeFieldType fieldType, int value) Returns a copy of this time with the specified field set to a new value.LocalTime.withFieldAdded
(DurationFieldType fieldType, int amount) Returns a copy of this time with the value of the specified field increased.LocalTime.withFields
(ReadablePartial partial) Returns a copy of this time with the partial set of fields replacing those from this instance.LocalTime.withHourOfDay
(int hour) Returns a copy of this time with the hour of day field updated.LocalTime.Property.withMaximumValue()
Returns a new LocalTime with this field set to the maximum value for this field.LocalTime.withMillisOfDay
(int millis) Returns a copy of this time with the millis of day field updated.LocalTime.withMillisOfSecond
(int millis) Returns a copy of this time with the millis of second field updated.LocalTime.Property.withMinimumValue()
Returns a new LocalTime with this field set to the minimum value for this field.LocalTime.withMinuteOfHour
(int minute) Returns a copy of this time with the minute of hour field updated.LocalTime.withPeriodAdded
(ReadablePeriod period, int scalar) Returns a copy of this time with the specified period added.LocalTime.withSecondOfMinute
(int second) Returns a copy of this time with the second of minute field updated.Methods in org.joda.time with parameters of type LocalTimeModifier and TypeMethodDescriptionLocalDate.toDateTime
(LocalTime time) Converts this object to a DateTime using a LocalTime to fill in the missing fields and using the default time zone.LocalDate.toDateTime
(LocalTime time, DateTimeZone zone) Converts this object to a DateTime using a LocalTime to fill in the missing fields.LocalDate.toLocalDateTime
(LocalTime time) Converts this object to a LocalDateTime using a LocalTime to fill in the missing fields.Returns a copy of this datetime with the specified time, retaining the date fields. -
Uses of LocalTime in org.joda.time.format
Methods in org.joda.time.format that return LocalTimeModifier and TypeMethodDescriptionDateTimeFormatter.parseLocalTime
(String text) Parses only the local time from the given text, returning a new LocalTime.