In The Hand LtdIn The Hand
DateTimeOffset Structure
NamespacesInTheHandDateTimeOffset
.NET Components for Mobility
Represents a point in time, typically expressed as a date and time of day, relative to Coordinated Universal Time (UTC).
Declaration Syntax
C#Visual Basic
[SerializableAttribute]
public struct DateTimeOffset : IComparable, 
	IComparable<DateTimeOffset>, IEquatable<DateTimeOffset>
<SerializableAttribute> _
Public Structure DateTimeOffset _
	Implements IComparable, IComparable(Of DateTimeOffset),  _
	IEquatable(Of DateTimeOffset)
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
DateTimeOffset(DateTime)
Initializes a new instance of the DateTimeOffset structure using the specified DateTime value.

DateTimeOffset(DateTime, TimeSpan)
Initializes a new instance of the DateTimeOffset structure using the specified DateTime value and offset.

DateTimeOffset(Int64, TimeSpan)
Initializes a new instance of the DateTimeOffset structure using the specified number of ticks and offset.

DateTimeOffset(Int32, Int32, Int32, Int32, Int32, Int32, TimeSpan)
Initializes a new instance of the DateTimeOffset structure using the specified year, month, day, hour, minute, second and offset.

DateTimeOffset(Int32, Int32, Int32, Int32, Int32, Int32, Int32, TimeSpan)
Initializes a new instance of the DateTimeOffset structure using the specified year, month, day, hour, minute, second, millisecond, and offset.

DateTimeOffset(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Calendar, TimeSpan)
Initializes a new instance of the DateTimeOffset structure using the specified year, month, day, hour, minute, second, millisecond, and offset of a specified calendar.

Add(TimeSpan)
Adds a specified time interval to a DateTimeOffset object.

AddDays(Double)
Adds a specified number of whole and fractional days to the current DateTimeOffset object.

AddHours(Double)
Adds a specified number of whole and fractional hours to the current DateTimeOffset object.

Addition(DateTimeOffset, TimeSpan)

AddMilliseconds(Double)
Adds a specified number of milliseconds to the current DateTimeOffset object.

AddMinutes(Double)
Adds a specified number of whole and fractional minutes to the current DateTimeOffset object.

AddMonths(Int32)
Adds a specified number of months to the current DateTimeOffset object.

AddSeconds(Double)
Adds a specified number of whole and fractional seconds to the current DateTimeOffset object.

AddTicks(Int64)
Adds a specified number of whole and fractional seconds to the current DateTimeOffset object.

AddYears(Int32)
Adds a specified number of years to the DateTimeOffset object.

Compare(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.

CompareTo(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.

Date
Gets a DateTime value that represents the date component of the current DateTimeOffset object.

DateTime
Gets a DateTime value that represents the date and time of the current DateTimeOffset object.

Day
Gets the day of the month represented by the current DateTimeOffset object.

DayOfWeek
Gets the day of the week represented by the current DateTimeOffset object.

DayOfYear
Gets the day of the year represented by the current DateTimeOffset object.

Equality(DateTimeOffset, DateTimeOffset)

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

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

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

Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FromFileTime(Int64)
Converts the specified Windows file time to an equivalent local time.

GetHashCode()()()()
Returns the hash code for the current DateTimeOffset object.
(Overrides ValueType.GetHashCode()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
GreaterThan(DateTimeOffset, DateTimeOffset)

GreaterThanOrEqual(DateTimeOffset, DateTimeOffset)

Hour
Gets the hour component of the time represented by the current DateTimeOffset object.

ImplicitWideningImplicitImplicitImplicit(DateTime to DateTimeOffset)

Inequality(DateTimeOffset, DateTimeOffset)

LessThan(DateTimeOffset, DateTimeOffset)

LessThanOrEqual(DateTimeOffset, DateTimeOffset)

LocalDateTime
Gets a DateTime value that represents the local date and time of the current DateTimeOffset object.

MaxValue
Represents the greatest possible value of DateTimeOffset.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Millisecond
Gets the millisecond component of the time represented by the current DateTimeOffset object.

Minute
Gets the minute component of the time represented by the current DateTimeOffset object.

MinValue
Represents the earliest possible DateTimeOffset value.

Month
Gets the month component of the date represented by the current DateTimeOffset object.

Now
Gets a DateTimeOffset object that is set to the current date and time on the current computer, with the offset set to the local time's offset from Coordinated Universal Time (UTC).

Offset
Gets the time's offset from Coordinated Universal Time (UTC).

Parse(String)
Converts the specified string representation of a date and time to its DateTimeOffset equivalent.

Parse(String, IFormatProvider)

Parse(String, IFormatProvider, DateTimeStyles)

ParseExact(String, String, IFormatProvider)

ParseExact(String, String, IFormatProvider, DateTimeStyles)

ParseExact(String, array<String>[]()[][], IFormatProvider, DateTimeStyles)

Second
Gets the second component of the clock time represented by the current DateTimeOffset object.

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

Subtract(TimeSpan)
Subtracts a specified time interval from the current DateTimeOffset object.

Subtraction(DateTimeOffset, DateTimeOffset)

Subtraction(DateTimeOffset, TimeSpan)

Ticks
Gets the number of ticks that represents the date and time of the current DateTimeOffset object in clock time.

TimeOfDay
Gets the time of day for the current DateTimeOffset object.

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

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

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

ToString()()()()
Converts the value of the current DateTimeOffset object to its equivalent string representation.
(Overrides ValueType.ToString()()()().)
ToUniversalTime()()()()
Converts the current DateTimeOffset object to a DateTimeOffset value that represents the Coordinated Universal Time (UTC).

UtcDateTime
Gets a DateTime value that represents the Coordinated Universal Time (UTC) date and time of the current DateTimeOffset object.

UtcNow
Gets a DateTimeOffset object whose date and time are set to the current Coordinated Universal Time (UTC) date and time and whose offset is TimeSpan.Zero.

UtcTicks
Gets the number of ticks that represents the date and time of the current DateTimeOffset object in Coordinated Universal Time (UTC).

Year
Gets the year component of the date represented by the current DateTimeOffset object.

Assembly: InTheHand (Module: InTheHand) Version: 7.0.0.0