A point on the time scale. An object of this class represents a
specific point in time regardless of time zone or locale.
Time points are immutable objects that can be compared or
converted to and from standard Java time objects like Calendar, Date
or time in milliseconds since 1 January 1970 (i.e. Epoch time).
New time points can be calculated relative to this time point,
using the methods forward, back, next, floor, ceil and round.
ISO 8601 representations of date and time can be obtained by
calling the date, weekDate, ordinalDate, time or dateTime
methods supplying a local time zone.
Convenience methods for creating time points for the current
time and for the beginning of the today are also included.
Inheritance Hierarchy
Apptus.ESales.Connector.TimeTimePoint
Namespace: Apptus.ESales.Connector.Time
Assembly: Apptus.Esales.ConnectorApi (in Apptus.Esales.ConnectorApi.dll) Version: 4.0.0
Syntax
C#
public class TimePoint
The TimePoint type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | Back |
Returns a new time point moved back with the length of a
specified duration.
|
![]() | CompareTo |
Returns a value < 0 if this time point occurs before a
specified other time point. Returns 0 if they occur simultaneously
(that is, are identical), or otherwise returns a value > 0.
|
![]() | Date |
Returns the calendar date (YYYY-MM-DD) representing the day of this time point,
in the specified local time zone.
|
![]() | DateTime |
Returns the date and time (YYYY-MM-DDTHH:MM:SS) for this time point,
observing local time zone.
|
![]() | Equals | (Overrides ObjectEquals(Object).) |
![]() | Finalize | (Inherited from Object.) |
![]() | Forward |
Returns a new time point moved forward with the length of a
specified duration.
|
![]() ![]() | FromDateTime |
Converts a local or UTC DateTime object to a TimePoint.
|
![]() | GetHashCode | (Overrides ObjectGetHashCode.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() ![]() | Now |
Returns a time point representing the current time.
|
![]() | OrdinalDate |
Returns the ordinal date (YYYY-DDD) representing the day of
this time point, in the specified local time zone.
|
![]() ![]() | Parse |
Parses a ISO 8601 formatted date and time and returns a time point
set to the specified point in time. If the ISO date and time lacks
offset specification, then the offset at that time for the supplied
time zone is used.
|
![]() | Time |
Returns the time of day (HH:MM:SS) for this time point,
observing local time zone.
|
![]() | ToDateTime |
Converts this TimePoint to a DateTime object in local time.
|
![]() ![]() | Today |
Returns a time point representing that start of today in the specified time zone.
|
![]() | ToString |
Returns an ISO 8601 representation of this time point in UTC.
(Overrides ObjectToString.) |
![]() | WeekDate |
Returns the week date (YYYY-Www-D) representing the day of
this time point, in the specified local time zone.
|
See Also