Example usage for Java org.joda.time LocalTime fields, constructors, methods, implement or subclass
The text is from its open source code.
LocalTime | MIDNIGHT Constant for midnight. |
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. |
int | compareTo(ReadablePartial partial) Compares this partial with another returning an integer indicating the order. |
boolean | equals(Object partial) Compares this ReadablePartial with another returning true if the chronology, field types and values are equal. |
LocalTime | fromCalendarFields(Calendar calendar) Constructs a LocalTime from a java.util.Calendar using exactly the same field values. |
LocalTime | fromDateFields(Date date) Constructs a LocalTime from a java.util.Date using exactly the same field values. |
LocalTime | fromMillisOfDay(long millisOfDay) Constructs a LocalTime from the specified millis of day using the ISO chronology. |
LocalTime | fromMillisOfDay(long millisOfDay, Chronology chrono) Constructs a LocalTime from the specified millis of day using the specified chronology. |
int | get(DateTimeFieldType fieldType) Get the value of one of the fields of time. |
Chronology | getChronology() Gets the chronology of the time. |
int | getHourOfDay() Get the hour of day field value. |
int | getMillisOfDay() Get the millis of day field value. |
int | getMillisOfSecond() Get the millis of second field value. |
int | getMinuteOfHour() Get the minute of hour field value. |
int | getSecondOfMinute() Get the second of minute field value. |
boolean | isAfter(ReadablePartial partial) Is this partial later than the specified partial. |
boolean | isBefore(ReadablePartial partial) Is this partial earlier than the specified partial. |
boolean | isEqual(ReadablePartial partial) Is this partial the same as the specified partial. |
Property | millisOfDay() Get the millis of day property which provides access to advanced functionality. |
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 | minusMinutes(int minutes) Returns a copy of this time minus the specified number of minutes. |
Property | minuteOfHour() Get the minute of hour field property which provides access to advanced functionality. |
LocalTime | now() Obtains a LocalTime set to the current system millisecond time using ISOChronology in the default time zone. |
LocalTime | now(DateTimeZone zone) Obtains a LocalTime set to the current system millisecond time using ISOChronology in the specified time zone. |
LocalTime | now(Chronology chronology) Obtains a LocalTime set to the current system millisecond time using the specified chronology. |
LocalTime | parse(String str, DateTimeFormatter formatter) Parses a LocalTime from the specified string using a formatter. |
LocalTime | parse(String str) Parses a LocalTime from the specified string. |
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. |
DateTime | toDateTime(ReadableInstant baseInstant) Resolves this partial against another complete instant to create a new full instant. |
DateTime | toDateTimeToday() 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. |
DateTime | toDateTimeToday(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. |
String | toString(String pattern) Output the time using the specified format pattern. |
String | toString() Output the time in ISO8601 format (HH:mm:ss.SSS). |
String | toString(String pattern, Locale locale) Output the time using the specified format pattern. |