DateTimeOffset Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The DateTimeOffset type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Add Adds a specified time interval to a DateTimeOffset object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 AddDays Adds a specified number of whole and fractional days to the current DateTimeOffset object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 AddHours Adds a specified number of whole and fractional hours to the current DateTimeOffset object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 AddMilliseconds Adds a specified number of milliseconds to the current DateTimeOffset object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 AddMinutes Adds a specified number of whole and fractional minutes to the current DateTimeOffset object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 AddMonths Adds a specified number of months to the current DateTimeOffset object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 AddSeconds Adds a specified number of whole and fractional seconds to the current DateTimeOffset object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 AddTicks Adds a specified number of ticks to the current DateTimeOffset object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 AddYears Adds a specified number of years to the DateTimeOffset object.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Compare Compares two DateTimeOffset objects and indicates whether the first is earlier than the second, equal to the second, or later than the second.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 CompareTo 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.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(DateTimeOffset) Determines whether the current DateTimeOffset object represents the same point in time as a specified DateTimeOffset object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(Object) Determines whether a DateTimeOffset object represents the same point in time as a specified object. (Overrides ValueType.Equals(Object).)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(DateTimeOffset, DateTimeOffset) Determines whether two specified DateTimeOffset objects represent the same point in time.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 EqualsExact Determines whether the current DateTimeOffset object represents the same time and has the same offset as a specified DateTimeOffset object.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 FromFileTime Converts the specified Windows file time to an equivalent local time.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetHashCode Returns the hash code for the current DateTimeOffset object. (Overrides ValueType.GetHashCode().)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Parse(String) Converts the specified string representation of a date, time, and offset to its DateTimeOffset equivalent.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Parse(String, IFormatProvider) Converts the specified string representation of a date and time to its DateTimeOffset equivalent using the specified culture-specific format information.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Parse(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.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ParseExact(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.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ParseExact(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.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ParseExact(String, array<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.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Subtract(DateTimeOffset) Subtracts a DateTimeOffset value that represents a specific date and time from the current DateTimeOffset object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Subtract(TimeSpan) Subtracts a specified time interval from the current DateTimeOffset object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToFileTime Converts the value of the current DateTimeOffset object to a Windows file time.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToLocalTime Converts the current DateTimeOffset object to a DateTimeOffset object that represents the local time.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToOffset Converts the value of the current DateTimeOffset object to the date and time specified by an offset value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString() Converts the value of the current DateTimeOffset object to its equivalent string representation. (Overrides ValueType.ToString().)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(IFormatProvider) Converts the value of the current DateTimeOffset object to its equivalent string representation using the specified culture-specific formatting information.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(String) Converts the value of the current DateTimeOffset object to its equivalent string representation using the specified format.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(String, IFormatProvider) Converts the value of the current DateTimeOffset object to its equivalent string representation using the specified format and culture-specific format information.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUniversalTime Converts the current DateTimeOffset object to a DateTimeOffset value that represents the Coordinated Universal Time (UTC).
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 TryParse(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.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 TryParse(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.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 TryParseExact(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.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 TryParseExact(String, array<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.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IComparable.CompareTo Infrastructure. Compares the value of the current DateTimeOffset object with another object of the same type.

Top