|
Joda Time API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.joda.time.AbstractInstant
|
+--org.joda.time.TimeOnly
|
+--org.joda.time.iso.ISOTimeOnly
ISOTimeOnly is the basic implementation of a time only class using the
ISOChronology.
It holds the time as milliseconds from the Epoch of 1970-01-01T00:00:00Z.
There is no date component - the date is always 1970-01-01.
| Constructor Summary | |
ISOTimeOnly()
Constructs an ISOTimeOnly to the current time, as reported by the system clock. |
|
ISOTimeOnly(java.util.Calendar calendar)
Constructs an ISOTimeOnly from a Calendar. |
|
ISOTimeOnly(java.util.Calendar calendar,
DateTimeZone zone)
Constructs an ISOTimeOnly from a Calendar. |
|
ISOTimeOnly(java.util.Date date)
Constructs an ISOTimeOnly from a Date. |
|
ISOTimeOnly(java.util.Date date,
DateTimeZone zone)
Constructs an ISOTimeOnly from a Date. |
|
ISOTimeOnly(DateTimeZone zone)
Constructs an ISOTimeOnly to the current time, as reported by the system clock. |
|
ISOTimeOnly(long millis)
Constructs an ISOTimeOnly set to the milliseconds from 1970-01-01T00:00:00Z. |
|
ISOTimeOnly(long millis,
DateTimeZone zone)
Constructs an ISOTimeOnly set to the milliseconds from 1970-01-01T00:00:00Z. |
|
ISOTimeOnly(ReadableInstant instant)
Constructs an ISOTimeOnly from a ReadableInstant. |
|
ISOTimeOnly(ReadableInstant instant,
DateTimeZone zone)
Constructs an ISOTimeOnly from a ReadableInstant. |
|
ISOTimeOnly(java.lang.String str)
Constructs an ISOTimeOnly from an ISO formatted String. |
|
ISOTimeOnly(java.lang.String str,
DateTimeZone zone)
Constructs an ISOTimeOnly from an ISO formatted String. |
|
| Methods inherited from class org.joda.time.TimeOnly |
getChronology, getHourOfDay, getMillis, getMillisOfDay, getMillisOfSecond, getMinuteOfDay, getMinuteOfHour, getSecondOfDay, getSecondOfMinute, hourOfDay, millisOfDay, millisOfSecond, minuteOfDay, minuteOfHour, secondOfDay, secondOfMinute, toString |
| Methods inherited from class org.joda.time.AbstractInstant |
compareTo, equals, get, hashCode, isAfter, isBefore, isEqual, toCalendar, toDate, toGregorianCalendar, toInstant |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ISOTimeOnly()
DateTimeZone.getDefault().
public ISOTimeOnly(DateTimeZone zone)
DateTimeZone.getDefault().
zone - the time zone, null is defaultpublic ISOTimeOnly(long millis)
DateTimeZone.getDefault().
millis - the milliseconds
public ISOTimeOnly(long millis,
DateTimeZone zone)
DateTimeZone.getDefault().
millis - the millisecondszone - the time zone, null is defaultpublic ISOTimeOnly(ReadableInstant instant)
DateTimeZone.getDefault().
instant - the ReadableInstant, must not be null
java.lang.IllegalArgumentException - if the instant is null
public ISOTimeOnly(ReadableInstant instant,
DateTimeZone zone)
DateTimeZone.getDefault().
instant - the ReadableInstant, must not be nullzone - the time zone, null is default
java.lang.IllegalArgumentException - if the instant is nullpublic ISOTimeOnly(java.util.Date date)
DateTimeZone.getDefault().
date - the Date, must not be null
java.lang.IllegalArgumentException - if the date is null
public ISOTimeOnly(java.util.Date date,
DateTimeZone zone)
DateTimeZone.getDefault().
date - the Date, must not be nullzone - the time zone, null is default
java.lang.IllegalArgumentException - if date is nullpublic ISOTimeOnly(java.util.Calendar calendar)
DateTimeZone.getDefault().
calendar - the Calendar, must not be null
java.lang.IllegalArgumentException - if the calendar is null.
public ISOTimeOnly(java.util.Calendar calendar,
DateTimeZone zone)
DateTimeZone.getDefault().
calendar - the Calendar, must not be nullzone - the time zone, null is default
java.lang.IllegalArgumentException - if the calendar is null
public ISOTimeOnly(java.lang.String str)
throws java.text.ParseException
DateTimeZone.getDefault().
str - the string to parse, must not be null
java.lang.IllegalArgumentException - if the string is null
java.text.ParseException - if parsing fails
public ISOTimeOnly(java.lang.String str,
DateTimeZone zone)
throws java.text.ParseException
DateTimeZone.getDefault().
str - the string to parse, must not be nullzone - the time zone, null is default
java.lang.IllegalArgumentException - if the string is null
java.text.ParseException - if parsing fails
|
Joda Time API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||