- <init>
Creates a new unit.
- addToDate
Calculates a new date by adding this unit to the base date.
- dateToString
Formats a date using the tick unit's formatter.
- getCalendarField
Returns a field code that can be used with the Calendar class.
- getMillisecondCount
Returns the (approximate) number of milliseconds for the given unit and unit
count. This value is an
- getMinorTickCount
- getMultiple
Returns the unit multiple.
- getSize
- rollDate
Rolls the date forward by the amount specified by the roll unit and count.
- getUnit
Returns the date unit. This will be one of the constantsYEAR, MONTH, DAY,HOUR,
MINUTE, SECOND orMIL
- getUnitType
Returns the unit type.
- intToUnitType
A utility method that is used internally to convert the old unit constants into
the corresponding en