Java org.joda.time LocalTime fields, constructors, methods, implement or subclass

Example usage for Java org.joda.time LocalTime fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.joda.time LocalTime.

The text is from its open source code.

Field

LocalTimeMIDNIGHT
Constant for midnight.

Constructor

LocalTime(DateTimeZone zone)
Constructs an instance set to the current local time evaluated using ISO chronology in the specified zone.
LocalTime(Chronology chronology)
Constructs an instance set to the current local time evaluated using specified chronology and zone.
LocalTime(long instant)
Constructs an instance set to the local time defined by the specified instant evaluated using ISO chronology in the default zone.
LocalTime(Object instant)
Constructs an instance from an Object that represents a datetime.
LocalTime(long instant, DateTimeZone zone)
Constructs an instance set to the local time defined by the specified instant evaluated using ISO chronology in the specified zone.
LocalTime(long instant, Chronology chronology)
Constructs an instance set to the local time defined by the specified instant evaluated using the specified chronology.
LocalTime(Object instant, DateTimeZone zone)
Constructs an instance from an Object that represents a datetime, forcing the time zone to that specified.
LocalTime(Object instant, Chronology chronology)
Constructs an instance from an Object that represents a datetime, using the specified chronology.
LocalTime(int hourOfDay, int minuteOfHour)
Constructs an instance set to the specified time using ISOChronology.
LocalTime(int hourOfDay, int minuteOfHour, int secondOfMinute)
Constructs an instance set to the specified time using ISOChronology.
LocalTime(int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)
Constructs an instance set to the specified time using ISOChronology.
LocalTime()
Constructs an instance set to the current local time evaluated using ISO chronology in the default zone.
LocalTime(int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond, Chronology chronology)
Constructs an instance set to the specified time using the specified chronology, whose zone is ignored.

Method

intcompareTo(ReadablePartial partial)
Compares this partial with another returning an integer indicating the order.
booleanequals(Object partial)
Compares this ReadablePartial with another returning true if the chronology, field types and values are equal.
LocalTimefromCalendarFields(Calendar calendar)
Constructs a LocalTime from a java.util.Calendar using exactly the same field values.
LocalTimefromDateFields(Date date)
Constructs a LocalTime from a java.util.Date using exactly the same field values.
LocalTimefromMillisOfDay(long millisOfDay)
Constructs a LocalTime from the specified millis of day using the ISO chronology.
LocalTimefromMillisOfDay(long millisOfDay, Chronology chrono)
Constructs a LocalTime from the specified millis of day using the specified chronology.
intget(DateTimeFieldType fieldType)
Get the value of one of the fields of time.
ChronologygetChronology()
Gets the chronology of the time.
intgetHourOfDay()
Get the hour of day field value.
intgetMillisOfDay()
Get the millis of day field value.
intgetMillisOfSecond()
Get the millis of second field value.
intgetMinuteOfHour()
Get the minute of hour field value.
intgetSecondOfMinute()
Get the second of minute field value.
booleanisAfter(ReadablePartial partial)
Is this partial later than the specified partial.
booleanisBefore(ReadablePartial partial)
Is this partial earlier than the specified partial.
booleanisEqual(ReadablePartial partial)
Is this partial the same as the specified partial.
PropertymillisOfDay()
Get the millis of day property which provides access to advanced functionality.
LocalTimeminus(ReadablePeriod period)
Returns a copy of this time with the specified period taken away.
LocalTimeminusHours(int hours)
Returns a copy of this time minus the specified number of hours.
LocalTimeminusMinutes(int minutes)
Returns a copy of this time minus the specified number of minutes.
PropertyminuteOfHour()
Get the minute of hour field property which provides access to advanced functionality.
LocalTimenow()
Obtains a LocalTime set to the current system millisecond time using ISOChronology in the default time zone.
LocalTimenow(DateTimeZone zone)
Obtains a LocalTime set to the current system millisecond time using ISOChronology in the specified time zone.
LocalTimenow(Chronology chronology)
Obtains a LocalTime set to the current system millisecond time using the specified chronology.
LocalTimeparse(String str, DateTimeFormatter formatter)
Parses a LocalTime from the specified string using a formatter.
LocalTimeparse(String str)
Parses a LocalTime from the specified string.
LocalTimeplusHours(int hours)
Returns a copy of this time plus the specified number of hours.
LocalTimeplusMillis(int millis)
Returns a copy of this time plus the specified number of millis.
LocalTimeplusMinutes(int minutes)
Returns a copy of this time plus the specified number of minutes.
DateTimetoDateTime(ReadableInstant baseInstant)
Resolves this partial against another complete instant to create a new full instant.
DateTimetoDateTimeToday()
Converts this LocalTime to a full datetime using the default time zone setting the time fields from this instance and the date fields from the current date.
DateTimetoDateTimeToday(DateTimeZone zone)
Converts this LocalTime to a full datetime using the specified time zone setting the time fields from this instance and the date fields from the current time.
StringtoString(String pattern)
Output the time using the specified format pattern.
StringtoString()
Output the time in ISO8601 format (HH:mm:ss.SSS).
StringtoString(String pattern, Locale locale)
Output the time using the specified format pattern.