|
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.DateTime
|
+--org.joda.time.iso.ISODateTime
ISODateTime is the basic implementation of a datetime class using the
ISOChronology.
It holds the time as milliseconds from the Epoch of 1970-01-01T00:00:00Z.
| Constructor Summary | |
ISODateTime()
Constructs an ISODateTime to the current datetime, as reported by the system clock. |
|
ISODateTime(java.util.Calendar calendar)
Constructs an ISODateTime from a Calendar. |
|
ISODateTime(java.util.Calendar calendar,
DateTimeZone zone)
Constructs an ISODateTime from a Calendar. |
|
ISODateTime(java.util.Date date)
Constructs an ISODateTime from a Date. |
|
ISODateTime(java.util.Date date,
DateTimeZone zone)
Constructs an ISODateTime from a Date. |
|
ISODateTime(DateTimeZone zone)
Constructs an ISODateTime to the current datetime, as reported by the system clock. |
|
ISODateTime(long millis)
Constructs an ISODateTime set to the milliseconds from 1970-01-01T00:00:00Z. |
|
ISODateTime(long millis,
DateTimeZone zone)
Constructs an ISODateTime set to the milliseconds from 1970-01-01T00:00:00Z. |
|
ISODateTime(ReadableInstant instant)
Constructs an ISODateTime from a ReadableInstant. |
|
ISODateTime(ReadableInstant instant,
DateTimeZone zone)
Constructs an ISODateTime from a ReadableInstant. |
|
ISODateTime(java.lang.String str)
Constructs an ISODateTime from an ISO formatted String. |
|
ISODateTime(java.lang.String str,
DateTimeZone zone)
Constructs an ISODateTime from an ISO formatted String. |
|
| Methods inherited from class org.joda.time.DateTime |
dayOfMonth, dayOfWeek, dayOfYear, era, getChronology, getDayOfMonth, getDayOfWeek, getDayOfYear, getEra, getHourOfDay, getLeapYear, getMillis, getMillisOfDay, getMillisOfSecond, getMinuteOfDay, getMinuteOfHour, getMonthOfYear, getSecondOfDay, getSecondOfMinute, getWeekOfYearWeek, getWeekOfYearYear, getYear, getYearOfEra, hourOfDay, leapYear, millisOfDay, millisOfSecond, minuteOfDay, minuteOfHour, monthOfYear, secondOfDay, secondOfMinute, toString, weekOfYearWeek, weekOfYearYear, year, yearOfEra |
| 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 ISODateTime()
DateTimeZone.getDefault().
public ISODateTime(DateTimeZone zone)
DateTimeZone.getDefault().
zone - the time zone, null is defaultpublic ISODateTime(long millis)
DateTimeZone.getDefault().
millis - the milliseconds
public ISODateTime(long millis,
DateTimeZone zone)
DateTimeZone.getDefault().
millis - the millisecondszone - the time zone, null is defaultpublic ISODateTime(ReadableInstant instant)
DateTimeZone.getDefault().
instant - the ReadableInstant, must not be null
java.lang.IllegalArgumentException - if the instant is null
public ISODateTime(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 ISODateTime(java.util.Date date)
DateTimeZone.getDefault().
date - the Date, must not be null
java.lang.IllegalArgumentException - if the date is null
public ISODateTime(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 ISODateTime(java.util.Calendar calendar)
DateTimeZone.getDefault().
calendar - the Calendar, must not be null
java.lang.IllegalArgumentException - if the calendar is null
public ISODateTime(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 ISODateTime(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 ISODateTime(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 | ||||||||||