

The second technique also provides access to other useful methods on theĭateTime is thread-safe and immutable, provided that the Chronology is as well.Īll standard Chronology classes supplied are thread-safe and immutable. International standard and compatible with the modern Gregorian calendar.Įach individual field can be queried in two ways: The default Chronology is ISOChronology which is the agreed Millisecond instant value is converted into the date time fields. Secondly, it holds a Chronology which determines how the Firstly, it holds theĭatetime as milliseconds from the Java epoch of. Internally, the class holds two pieces of data. Point on the time-line, but limited to the precision of milliseconds.Ī DateTime calculates its fields with respect to a As with all instants, it represents an exact Public final class DateTime extends BaseDateTime implements ReadableDateTime, SerializableĭateTime is the standard implementation of an unmodifiable datetime class.ĭateTime is the most widely used implementation of SUMMARY: NESTED | FIELD | CONSTR | METHODĬlass DateTime .AbstractInstant .AbstractDateTime .BaseDateTime All Implemented Interfaces: Serializable, Comparable, ReadableDateTime, ReadableInstant
