Method Summary |
|
public int | compareTo(Object instant) Compares this object with the specified object for ascending
millisecond instant order. |
public boolean | equals(Object readableInstant) Compares this object with the specified object for equality based
on the millisecond instant, chronology and time zone.
Two objects which represent the same instant in time, but are in
different time zones (based on time zone id), will be considered to
be different. |
public int | get(DateTimeFieldType type) Get the value of one of the fields of a datetime using the chronology of the instant. |
public int | get(DateTimeField field) Get the value of one of the fields of a datetime. |
public DateTimeZone | getZone() Gets the time zone of the instant from the chronology. |
public int | hashCode() Gets a hash code for the instant as defined in ReadableInstant . |
public boolean | isAfter(long instant) Is this instant after the millisecond instant passed in
comparing solely by millisecond. |
public boolean | isAfter(ReadableInstant instant) Is this instant after the instant passed in
comparing solely by millisecond. |
public boolean | isAfterNow() Is this instant after the current instant
comparing solely by millisecond. |
public boolean | isBefore(long instant) Is this instant before the millisecond instant passed in
comparing solely by millisecond. |
public boolean | isBefore(ReadableInstant instant) Is this instant before the instant passed in
comparing solely by millisecond. |
public boolean | isBeforeNow() Is this instant before the current instant
comparing solely by millisecond. |
public boolean | isEqual(long instant) Is this instant equal to the millisecond instant passed in
comparing solely by millisecond. |
public boolean | isEqual(ReadableInstant instant) Is this instant equal to the instant passed in
comparing solely by millisecond. |
public boolean | isEqualNow() Is this instant equal to the current instant
comparing solely by millisecond. |
public boolean | isSupported(DateTimeFieldType type) Checks if the field type specified is supported by this instant and chronology. |
public Date | toDate() Get the date time as a java.util.Date . |
public DateTime | toDateTime() Get this object as a DateTime in the same zone. |
public DateTime | toDateTime(DateTimeZone zone) Get this object as a DateTime using the same chronology but a different zone. |
public DateTime | toDateTime(Chronology chronology) Get this object as a DateTime using the given chronology and its zone. |
public DateTime | toDateTimeISO() Get this object as a DateTime using ISOChronology in the same zone. |
public Instant | toInstant() Get this object as an Instant. |
public MutableDateTime | toMutableDateTime() Get this object as a MutableDateTime in the same zone. |
public MutableDateTime | toMutableDateTime(DateTimeZone zone) Get this object as a MutableDateTime using the same chronology but a different zone. |
public MutableDateTime | toMutableDateTime(Chronology chronology) Get this object as a MutableDateTime using the given chronology and its zone. |
public MutableDateTime | toMutableDateTimeISO() Get this object as a MutableDateTime using ISOChronology in the same zone. |
public String | toString() Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZ). |
public String | toString(DateTimeFormatter formatter) Uses the specified formatter to convert this partial to a String.
Parameters: formatter - the formatter to use, null means use toString() . |