Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DateTimeOffset Methods

The DateTimeOffset type exposes the following members.

  NameDescription
Public method Add Adds a specified time interval to a DateTimeOffset object.
Public method AddDays Adds a specified number of whole and fractional days to the current DateTimeOffset object.
Public method AddHours Adds a specified number of whole and fractional hours to the current DateTimeOffset object.
Public method AddMilliseconds Adds a specified number of milliseconds to the current DateTimeOffset object.
Public method AddMinutes Adds a specified number of whole and fractional minutes to the current DateTimeOffset object.
Public method AddMonths Adds a specified number of months to the current DateTimeOffset object.
Public method AddSeconds Adds a specified number of whole and fractional seconds to the current DateTimeOffset object.
Public method AddTicks Adds a specified number of ticks to the current DateTimeOffset object.
Public method AddYears Adds a specified number of years to the DateTimeOffset object.
Public method Static member 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 method 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 method Static member Equals Overloaded. Determines whether two DateTimeOffset objects are equal, or a DateTimeOffset object is equal to a specified object.
Public method EqualsExact Determines whether the current DateTimeOffset object represents the same time and has the same offset as a specified DateTimeOffset object.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member FromFileTime Converts the specified Windows file time to an equivalent local time.
Public method GetHashCode Returns the hash code for the current DateTimeOffset object. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Parse Overloaded. Converts the specified string representation of a date and time to its DateTimeOffset equivalent.
Public method Static member ParseExact Overloaded. Converts the specified string representation of a date and time to its DateTimeOffset equivalent. The format of the string representation must match a specified format exactly.
Public method Subtract Overloaded. Subtracts a specified time or duration from the current DateTimeOffset object.
Public method ToFileTime Converts the value of the current DateTimeOffset object to a Windows file time.
Public method ToLocalTime Converts the current DateTimeOffset object to a DateTimeOffset object that represents the local time.
Public method ToOffset Converts the value of the current DateTimeOffset object to the date and time specified by an offset value.
Public method ToString Overloaded. Converts the value of the current DateTimeOffset object to its equivalent string representation.
Public method ToUniversalTime Converts the current DateTimeOffset object to a DateTimeOffset value that represents the Coordinated Universal Time (UTC).
Public method Static member TryParse Overloaded. Converts a specified string representation of a date and time to its DateTimeOffset equivalent.
Public method Static member TryParseExact Overloaded. Converts the specified string representation of a date and time to its DateTimeOffset equivalent. The format of the string representation must match a specified format exactly.
Top
  NameDescription
Explicit interface implemetation Private method IComparable.CompareTo Infrastructure. Compares the value of the current DateTimeOffset object with another object of the same type.
Explicit interface implemetation Private method ISerializable.GetObjectData Infrastructure. Populates a SerializationInfo object with the data required to serialize the current DateTimeOffset object.
Explicit interface implemetation Private method IDeserializationCallback.OnDeserialization Infrastructure. Runs when the deserialization of an object has been completed.
Top

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.