|
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.DateOnly
|
+--org.joda.time.iso.ISODateOnly
ISODateOnly is the basic implementation of a date only class using the
ISOChronology.
It holds the date as milliseconds from the Epoch of 1970-01-01T00:00:00Z.
There is no time component - the time is always 00:00:00.
| Constructor Summary | |
ISODateOnly()
Constructs an ISODateOnly to the current date, as reported by the system clock. |
|
ISODateOnly(java.util.Calendar calendar)
Constructs an ISODateOnly from a Calendar. |
|
ISODateOnly(java.util.Calendar calendar,
DateTimeZone zone)
Constructs an ISODateOnly from a Calendar. |
|
ISODateOnly(java.util.Date date)
Constructs an ISODateOnly from a Date. |
|
ISODateOnly(java.util.Date date,
DateTimeZone zone)
Constructs an ISODateOnly from a Date. |
|
ISODateOnly(DateTimeZone zone)
Constructs an ISODateOnly to the current date, as reported by the system clock. |
|
ISODateOnly(long millis)
Constructs an ISODateOnly set to the milliseconds from 1970-01-01T00:00:00Z. |
|
ISODateOnly(long millis,
DateTimeZone zone)
Constructs an ISODateOnly set to the milliseconds from 1970-01-01T00:00:00Z. |
|
ISODateOnly(ReadableInstant instant)
Constructs an ISODateOnly from a ReadableInstant. |
|
ISODateOnly(ReadableInstant instant,
DateTimeZone zone)
Constructs an ISODateOnly from a ReadableInstant. |
|
ISODateOnly(java.lang.String str)
Constructs an ISODateOnly from an ISO formatted String. |
|
ISODateOnly(java.lang.String str,
DateTimeZone zone)
Constructs an ISODateOnly from an ISO formatted String. |
|
| Methods inherited from class org.joda.time.DateOnly |
dayOfMonth, dayOfWeek, dayOfYear, era, getChronology, getDayOfMonth, getDayOfWeek, getDayOfYear, getEra, getLeapYear, getMillis, getMonthOfYear, getWeekOfYearWeek, getWeekOfYearYear, getYear, getYearOfEra, leapYear, monthOfYear, 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 ISODateOnly()
DateTimeZone.getDefault().
public ISODateOnly(DateTimeZone zone)
DateTimeZone.getDefault().
zone - the time zone, null is defaultpublic ISODateOnly(long millis)
DateTimeZone.getDefault().
millis - the milliseconds
public ISODateOnly(long millis,
DateTimeZone zone)
DateTimeZone.getDefault().
millis - the millisecondszone - the time zone, null is defaultpublic ISODateOnly(ReadableInstant instant)
DateTimeZone.getDefault().
instant - the ReadableInstant, must not be null
java.lang.IllegalArgumentException - if the instant is null
public ISODateOnly(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 ISODateOnly(java.util.Date date)
DateTimeZone.getDefault().
date - the Date, must not be null
java.lang.IllegalArgumentException - if the date is null
public ISODateOnly(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 ISODateOnly(java.util.Calendar calendar)
DateTimeZone.getDefault().
calendar - the Calendar, must not be null
java.lang.IllegalArgumentException - if the calendar is null
public ISODateOnly(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 ISODateOnly(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 ISODateOnly(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 | ||||||||||