System.DateTimeOffset: Method Members

The methods of System.DateTimeOffset are listed below. For a list of all members, see the DateTimeOffset Members list.

See Also: Inherited members from System.ValueType

Public Methods

Add(TimeSpan) : DateTimeOffset

Adds a specified time interval to a DateTimeOffset object.

AddDays(double) : DateTimeOffset

Adds a specified number of whole and fractional days to the current DateTimeOffset object.

AddHours(double) : DateTimeOffset

Adds a specified number of whole and fractional hours to the current DateTimeOffset object.

AddMilliseconds(double) : DateTimeOffset

Adds a specified number of milliseconds to the current DateTimeOffset object.

AddMinutes(double) : DateTimeOffset

Adds a specified number of whole and fractional minutes to the current DateTimeOffset object.

AddMonths(int) : DateTimeOffset

Adds a specified number of months to the current DateTimeOffset object.

AddSeconds(double) : DateTimeOffset

Adds a specified number of whole and fractional seconds to the current DateTimeOffset object.

AddTicks(long) : DateTimeOffset

Adds a specified number of ticks to the current DateTimeOffset object.

AddYears(int) : DateTimeOffset

Adds a specified number of years to the DateTimeOffset object.

static
Compare(DateTimeOffset, DateTimeOffset) : int

Compares two DateTimeOffset objects and indicates whether the first is earlier than the second, equal to the second, or later than the second.

CompareTo(DateTimeOffset) : int

Compares the current DateTimeOffset object to a specified DateTimeOffset object and indicates whether the current object is earlier than, the same as, or later than the second DateTimeOffset object.

Equals(DateTimeOffset) : bool

Determines whether the current DateTimeOffset object represents the same point in time as a specified DateTimeOffset object.

override
Equals(object) : bool

Determines whether a DateTimeOffset object represents the same point in time as a specified object.

static
Equals(DateTimeOffset, DateTimeOffset) : bool

Determines whether two specified DateTimeOffset objects represent the same point in time.

EqualsExact(DateTimeOffset) : bool

Determines whether the current DateTimeOffset object represents the same time and has the same offset as a specified DateTimeOffset object.

static
FromFileTime(long) : DateTimeOffset

Converts the specified Windows file time to an equivalent local time.

override
GetHashCode() : int

Returns the hash code for the current DateTimeOffset object.

static
Parse(string) : DateTimeOffset

Converts the specified string representation of a date, time, and offset to its DateTimeOffset equivalent.

static
Parse(string, IFormatProvider) : DateTimeOffset

Converts the specified string representation of a date and time to its DateTimeOffset equivalent using the specified culture-specific format information.

static
Parse(string, IFormatProvider, System.Globalization.DateTimeStyles) : DateTimeOffset

Converts the specified string representation of a date and time to its DateTimeOffset equivalent using the specified culture-specific format information and formatting style.

static
ParseExact(string, string, IFormatProvider) : DateTimeOffset

Converts the specified string representation of a date and time to its DateTimeOffset equivalent using the specified format and culture-specific format information. The format of the string representation must match the specified format exactly.

static
ParseExact(string, string, IFormatProvider, System.Globalization.DateTimeStyles) : DateTimeOffset

Converts the specified string representation of a date and time to its DateTimeOffset equivalent using the specified format, culture-specific format information, and style. The format of the string representation must match the specified format exactly.

static
ParseExact(string, string[], IFormatProvider, System.Globalization.DateTimeStyles) : DateTimeOffset

Converts the specified string representation of a date and time to its DateTimeOffset equivalent using the specified formats, culture-specific format information, and style. The format of the string representation must match one of the specified formats exactly.

Subtract(DateTimeOffset) : TimeSpan

Subtracts a DateTimeOffset value that represents a specific date and time from the current DateTimeOffset object.

Subtract(TimeSpan) : DateTimeOffset

Subtracts a specified time interval from the current DateTimeOffset object.

ToFileTime() : long

Converts the value of the current DateTimeOffset object to a Windows file time.

ToLocalTime() : DateTimeOffset

Converts the current DateTimeOffset object to a DateTimeOffset object that represents the local time.

ToOffset(TimeSpan) : DateTimeOffset

Converts the value of the current DateTimeOffset object to the date and time specified by an offset value.

override
ToString() : string

Converts the value of the current DateTimeOffset object to its equivalent string representation.

ToString(IFormatProvider) : string

Converts the value of the current DateTimeOffset object to its equivalent string representation using the specified culture-specific formatting information.

ToString(string) : string

Converts the value of the current DateTimeOffset object to its equivalent string representation using the specified format.

ToString(string, IFormatProvider) : string

Converts the value of the current DateTimeOffset object to its equivalent string representation using the specified format and culture-specific format information.

ToUniversalTime() : DateTimeOffset

Converts the current DateTimeOffset object to a DateTimeOffset value that represents the Coordinated Universal Time (UTC).

static
TryParse(string, out DateTimeOffset) : bool
Documentation for this section has not yet been entered.
static
TryParse(string, IFormatProvider, System.Globalization.DateTimeStyles, out DateTimeOffset) : bool
Documentation for this section has not yet been entered.
static
TryParseExact(string, string, IFormatProvider, System.Globalization.DateTimeStyles, out DateTimeOffset) : bool
Documentation for this section has not yet been entered.
static
TryParseExact(string, string[], IFormatProvider, System.Globalization.DateTimeStyles, out DateTimeOffset) : bool
Documentation for this section has not yet been entered.