The Unit type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Add |
Adds a specified amount of this unit to a date time and returns
the new date time.
| |
| Ceil |
Returns a new DateTime moved forward in time to the closest whole unit.
| |
| CompareTo |
Compares to units. The unit with the smallest duration is considered
the lesser one.
| |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| Floor |
Returns a new DateTime moved back in time to the closest whole unit.
| |
| ForSymbol |
Returns the unit for the specified symbol. If the symbol is unknown,
then throws IllegalArgumentException.
| |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| Round |
Returns a new DateTime moved forward or backward in time to the closest whole unit.
| |
| ToString | (Inherited from Object.) |
See Also