Click or drag to resize
Unit Class
An enumeration of time units.
Inheritance Hierarchy
SystemObject
  Apptus.ESales.Connector.TimeUnit

Namespace:  Apptus.ESales.Connector.Time
Assembly:  Apptus.Esales.ConnectorApi (in Apptus.Esales.ConnectorApi.dll) Version: 4.5.0
Syntax
C#
public class Unit : IComparable<Unit>

The Unit type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberAll
A list of all time units.
Public propertyStatic memberDay
Public propertyStatic memberHour
Public propertyStatic memberMinute
Public propertyStatic memberMonth
Public propertyStatic memberSecond
Public propertySymbol
Returns the symbol representing this unit. Note that these may differ from the ISO symbol with respect to case.
Public propertyStatic memberWeek
Public propertyStatic memberYear
Top
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