Click or drag to resize
Unit Methods

The Unit type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds a specified amount of this unit to a date time and returns the new date time.
Public methodCeil
Returns a new DateTime moved forward in time to the closest whole unit.
Public methodCompareTo
Compares to units. The unit with the smallest duration is considered the lesser one.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFloor
Returns a new DateTime moved back in time to the closest whole unit.
Public methodStatic memberForSymbol
Returns the unit for the specified symbol. If the symbol is unknown, then throws IllegalArgumentException.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRound
Returns a new DateTime moved forward or backward in time to the closest whole unit.
Public methodToString (Inherited from Object.)
Top
See Also