MutableDateTime is the standard implementation of a modifiable datetime class. It holds the datetime as milliseconds from the Java epoch of 1970-01-01T00:00:00Z.
This class uses a Chronology internally. The Chronology determines how the millisecond instant value is converted into the date time fields. The default Chronology is ISOChronology
which is the agreed international standard and compatible with the modern Gregorian calendar.
Each individual field can be accessed in two ways:
getHourOfDay()
hourOfDay().get()
The second technique also provides access to other useful methods on the field:
- get numeric value
- set numeric value
- add to numeric value
- add to numeric value wrapping with the field
- get text value
- get short text value
- set text value
- field maximum value
- field minimum value
MutableDateTime is mutable and not thread-safe, unless concurrent threads are not invoking mutator methods.
@author Guy Allard
@author Brian S O'Neill
@author Stephen Colebourne
@author Mike Schrag
@since 1.0
@see DateTime