TimePoint ClassA Sandcastle Documented Class Library
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

SystemObject
  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

  NameDescription
Public methodBack
Returns a new time point moved back with the length of a specified duration.
Public methodCompareTo
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.
Public methodDate
Returns the calendar date (YYYY-MM-DD) representing the day of this time point, in the specified local time zone.
Public methodDateTime
Returns the date and time (YYYY-MM-DDTHH:MM:SS) for this time point, observing local time zone.
Public methodEquals (Overrides ObjectEquals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodForward
Returns a new time point moved forward with the length of a specified duration.
Public methodStatic memberFromDateTime
Converts a local or UTC DateTime object to a TimePoint.
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberNow
Returns a time point representing the current time.
Public methodOrdinalDate
Returns the ordinal date (YYYY-DDD) representing the day of this time point, in the specified local time zone.
Public methodStatic memberParse
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.
Public methodTime
Returns the time of day (HH:MM:SS) for this time point, observing local time zone.
Public methodToDateTime
Converts this TimePoint to a DateTime object in local time.
Public methodStatic memberToday
Returns a time point representing that start of today in the specified time zone.
Public methodToString
Returns an ISO 8601 representation of this time point in UTC.
(Overrides ObjectToString.)
Public methodWeekDate
Returns the week date (YYYY-Www-D) representing the day of this time point, in the specified local time zone.
Top
See Also

Reference