Export (0) Print
Expand All

DateTimeOffset Operators and Type Conversions

The DateTimeOffset type exposes the following members.

  Name Description
Public operator Static member Supported by Portable Class Library 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.
Public operator Static member Supported by Portable Class Library Equality Determines whether two specified DateTimeOffset objects represent the same point in time.
Public operator Static member Supported by Portable Class Library GreaterThan Determines whether one specified DateTimeOffset object is greater than (or later than) a second specified DateTimeOffset object.
Public operator Static member Supported by Portable Class Library GreaterThanOrEqual Determines whether one specified DateTimeOffset object is greater than or equal to a second specified DateTimeOffset object.
Public operator Static member Supported by Portable Class Library Implicit(DateTime to DateTimeOffset) Defines an implicit conversion of a DateTime object to a DateTimeOffset object.
Public operator Static member Supported by Portable Class Library Inequality Determines whether two specified DateTimeOffset objects refer to different points in time.
Public operator Static member Supported by Portable Class Library LessThan Determines whether one specified DateTimeOffset object is less than a second specified DateTimeOffset object.
Public operator Static member Supported by Portable Class Library LessThanOrEqual Determines whether one specified DateTimeOffset object is less than a second specified DateTimeOffset object.
Public operator Static member Supported by Portable Class Library Subtraction(DateTimeOffset, DateTimeOffset) Subtracts one DateTimeOffset object from another and yields a time interval.
Public operator Static member Supported by Portable Class Library Subtraction(DateTimeOffset, TimeSpan) Subtracts a specified time interval from a specified date and time, and yields a new date and time.
Top
Show:
© 2015 Microsoft