Unit Class |
Namespace: Apptus.ESales.Connector.Time
public class Unit : IComparable<Unit>
The Unit type exposes the following members.
Name | Description | |
---|---|---|
All |
A list of all time units.
| |
Day | ||
Hour | ||
Minute | ||
Month | ||
Second | ||
Symbol |
Returns the symbol representing this unit. Note that these may differ
from the ISO symbol with respect to case.
| |
Week | ||
Year |
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.) |