Package org.joda.time

Class MutableDateTime.Property

All Implemented Interfaces:
Serializable
Enclosing class:
MutableDateTime

public static final class MutableDateTime.Property extends AbstractReadableInstantFieldProperty
MutableDateTime.Property binds a MutableDateTime to a DateTimeField allowing powerful datetime functionality to be easily accessed.

The example below shows how to use the property to change the value of a MutableDateTime object.

 MutableDateTime dt = new MutableDateTime(1972, 12, 3, 13, 32, 19, 123);
 dt.year().add(20);
 dt.second().roundFloor().minute().set(10);
 

MutableDateTime.Propery itself is thread-safe and immutable, but the MutableDateTime being operated on is not.

Since:
1.0
Author:
Stephen Colebourne, Brian S O'Neill
See Also: