TimeInterval Class |
Namespace: Apptus.ESales.Connector.Time
public class TimeInterval
The TimeInterval type exposes the following members.
Name | Description | |
---|---|---|
Create(DateTime, DateTime) |
Creates a time interval between the specified start and end date-times.
| |
Create(Duration, IsoDateTime) |
Creates a time interval with the specified duration ending at
the specified end date-time.
| |
Create(IsoDateTime, Duration) |
Creates a time interval from the specified start date-time with the
specified duration.
| |
Create(IsoDateTime, IsoDateTime) |
Creates a time interval between the specified start and end date-times.
| |
Day |
Convenience method for returning a time interval covering a complete
calendar day. The start date is expressed in local time.
| |
Duration |
Returns the duration of this time interval. If this interval was specified
by start and end times, the duration is calculated given a local time zone.
Note that if the duration is calculated, it will be specified
in hours, minutes and seconds only. The number of hours may be very large for
long intervals.
| |
End |
Returns the end point in time, given the time zone for local time.
| |
Equals |
True if the argument is a time interval specified by the very same
components as this time interval.
Two time intervals may cover the same set of time points in all
time zones and for all locales and still not be
considered equal, depending on how they are specified.
(Overrides ObjectEquals(Object).) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Overrides ObjectGetHashCode.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
Month |
Convenience method for returning a time interval covering a complete
calendar month. The start date is expressed in local time.
| |
Parse |
Parses a time interval on any of the three valid formats.
| |
Quarter |
Convenience method for returning a time interval covering a complete
calendar quarter. The start date is expressed in local time.
| |
Start |
Returns the start point in time, given the time zone for local
time.
| |
Today |
Convenience method for returning a time interval covering today.
The start date is expressed in local time.
| |
ToString |
Returns an ISO 8601 formatted string representing this time interval.
(Overrides ObjectToString.) | |
ToTimeSpan |
Returns the length in milliseconds for this time interval, given a local time zone.
| |
Week |
Convenience method for returning a time interval covering a complete
calendar week according to the week rules defined by the specified
locale. The start date is expressed in local time.
| |
Year |
Convenience method for returning a time interval covering a complete
calendar year. The start date is expressed in local time.
|