DateTimeOffset Methods

DateTimeOffset Methods

 

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodAdd(TimeSpan)

Returns a new DateTimeOffset object that adds a specified time interval to the value of this instance.

System_CAPS_pubmethodAddDays(Double)

Returns a new DateTimeOffset object that adds a specified number of whole and fractional days to the value of this instance.

System_CAPS_pubmethodAddHours(Double)

Returns a new DateTimeOffset object that adds a specified number of whole and fractional hours to the value of this instance.

System_CAPS_pubmethodAddMilliseconds(Double)

Returns a new DateTimeOffset object that adds a specified number of milliseconds to the value of this instance.

System_CAPS_pubmethodAddMinutes(Double)

Returns a new DateTimeOffset object that adds a specified number of whole and fractional minutes to the value of this instance.

System_CAPS_pubmethodAddMonths(Int32)

Returns a new DateTimeOffset object that adds a specified number of months to the value of this instance.

System_CAPS_pubmethodAddSeconds(Double)

Returns a new DateTimeOffset object that adds a specified number of whole and fractional seconds to the value of this instance.

System_CAPS_pubmethodAddTicks(Int64)

Returns a new DateTimeOffset object that adds a specified number of ticks to the value of this instance.

System_CAPS_pubmethodAddYears(Int32)

Returns a new DateTimeOffset object that adds a specified number of years to the value of this instance.

System_CAPS_pubmethodSystem_CAPS_staticCompare(DateTimeOffset, DateTimeOffset)

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

System_CAPS_pubmethodCompareTo(DateTimeOffset)

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.

System_CAPS_pubmethodEquals(DateTimeOffset)

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

System_CAPS_pubmethodSystem_CAPS_staticEquals(DateTimeOffset, DateTimeOffset)

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

System_CAPS_pubmethodEquals(Object)

Determines whether a DateTimeOffset object represents the same point in time as a specified object.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodEqualsExact(DateTimeOffset)

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

System_CAPS_pubmethodSystem_CAPS_staticFromFileTime(Int64)

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

System_CAPS_pubmethodSystem_CAPS_staticFromUnixTimeMilliseconds(Int64)

Converts a Unix time expressed as the number of milliseconds that have elapsed since 1970-01-01T00:00:00Z to a DateTimeOffset value.

System_CAPS_pubmethodSystem_CAPS_staticFromUnixTimeSeconds(Int64)

Converts a Unix time expressed as the number of seconds that have elapsed since 1970-01-01T00:00:00Z to a DateTimeOffset value.

System_CAPS_pubmethodGetHashCode()

Returns the hash code for the current DateTimeOffset object.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticParse(String)

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

System_CAPS_pubmethodSystem_CAPS_staticParse(String, IFormatProvider)

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

System_CAPS_pubmethodSystem_CAPS_staticParse(String, IFormatProvider, DateTimeStyles)

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

System_CAPS_pubmethodSystem_CAPS_staticParseExact(String, String, IFormatProvider)

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.

System_CAPS_pubmethodSystem_CAPS_staticParseExact(String, String, IFormatProvider, DateTimeStyles)

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.

System_CAPS_pubmethodSystem_CAPS_staticParseExact(String, String[], IFormatProvider, DateTimeStyles)

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.

System_CAPS_pubmethodSubtract(DateTimeOffset)

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

System_CAPS_pubmethodSubtract(TimeSpan)

Subtracts a specified time interval from the current DateTimeOffset object.

System_CAPS_pubmethodToFileTime()

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

System_CAPS_pubmethodToLocalTime()

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

System_CAPS_pubmethodToOffset(TimeSpan)

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

System_CAPS_pubmethodToString()

Converts the value of the current DateTimeOffset object to its equivalent string representation.(Overrides ValueType.ToString().)

System_CAPS_pubmethodToString(IFormatProvider)

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

System_CAPS_pubmethodToString(String)

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

System_CAPS_pubmethodToString(String, IFormatProvider)

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

System_CAPS_pubmethodToUniversalTime()

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

System_CAPS_pubmethodToUnixTimeMilliseconds()

Returns the number of milliseconds that have elapsed since 1970-01-01T00:00:00.000Z.

System_CAPS_pubmethodToUnixTimeSeconds()

Returns the number of seconds that have elapsed since 1970-01-01T00:00:00Z.

System_CAPS_pubmethodSystem_CAPS_staticTryParse(String, DateTimeOffset)

Tries to converts a specified string representation of a date and time to its DateTimeOffset equivalent, and returns a value that indicates whether the conversion succeeded.

System_CAPS_pubmethodSystem_CAPS_staticTryParse(String, IFormatProvider, DateTimeStyles, DateTimeOffset)

Tries to convert a specified string representation of a date and time to its DateTimeOffset equivalent, and returns a value that indicates whether the conversion succeeded.

System_CAPS_pubmethodSystem_CAPS_staticTryParseExact(String, String, IFormatProvider, 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.

System_CAPS_pubmethodSystem_CAPS_staticTryParseExact(String, String[], IFormatProvider, DateTimeStyles, DateTimeOffset)

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

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIComparable.CompareTo(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Compares the value of the current DateTimeOffset object with another object of the same type.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDeserializationCallback.OnDeserialization(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Runs when the deserialization of an object has been completed.

System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.GetObjectData(SerializationInfo, StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code. Populates a SerializationInfo object with the data required to serialize the current DateTimeOffset object.

Return to top
Show:
© 2016 Microsoft