An enumeration of time units.
Inheritance Hierarchy
Apptus.ESales.Connector.TimeUnit
Namespace: Apptus.ESales.Connector.Time
Assembly: Apptus.Esales.ConnectorApi (in Apptus.Esales.ConnectorApi.dll) Version: 3.47.3
Syntax
C#
public class Unit : IComparable<Unit>
The Unit type exposes the following members.
Properties
| 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 |
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