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.
Assembly: Apptus.Esales.ConnectorApi (in Apptus.Esales.ConnectorApi.dll) Version: 4.0.0
public class TimePoint
Thetype exposes the following members.
Returns a new time point moved back with the length of a specified duration.
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.
Returns the calendar date (YYYY-MM-DD) representing the day of this time point, in the specified local time zone.
Returns the date and time (YYYY-MM-DDTHH:MM:SS) for this time point, observing local time zone.
Returns a new time point moved forward with the length of a specified duration.
Converts a local or UTC DateTime object to a TimePoint.
Returns a time point representing the current time.
Returns the ordinal date (YYYY-DDD) representing the day of this time point, in the specified local time zone.
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.
Returns the time of day (HH:MM:SS) for this time point, observing local time zone.
Converts this TimePoint to a DateTime object in local time.
Returns a time point representing that start of today in the specified time zone.
Returns an ISO 8601 representation of this time point in UTC.(Overrides .)
Returns the week date (YYYY-Www-D) representing the day of this time point, in the specified local time zone.