This documentation is archived and is not being maintained.
DateTimeOffset Operators and Type Conversions
Visual Studio 2010
The DateTimeOffset type exposes the following members.
| Name | Description | |
|---|---|---|
|
Addition | Adds a specified time interval to a DateTimeOffset object that has a specified date and time, and yields a DateTimeOffset object that has new a date and time. |
|
Equality | Determines whether two specified DateTimeOffset objects represent the same point in time. |
|
GreaterThan | Determines whether one specified DateTimeOffset object is greater than (or later than) a second specified DateTimeOffset object. |
|
GreaterThanOrEqual | Determines whether one specified DateTimeOffset object is greater than or equal to a second specified DateTimeOffset object. |
|
Implicit(DateTime to DateTimeOffset) | Defines an implicit conversion of a DateTime object to a DateTimeOffset object. |
|
Inequality | Determines whether two specified DateTimeOffset objects refer to different points in time. |
|
LessThan | Determines whether one specified DateTimeOffset object is less than a second specified DateTimeOffset object. |
|
LessThanOrEqual | Determines whether one specified DateTimeOffset object is less than a second specified DateTimeOffset object. |
|
Subtraction(DateTimeOffset, DateTimeOffset) | Subtracts one DateTimeOffset object from another and yields a time interval. |
|
Subtraction(DateTimeOffset, TimeSpan) | Subtracts a specified time interval from a specified date and time, and yields a new date and time. |
Show: