The members of System.DateTimeOffset are listed below.
See Also: Inherited members from System.ValueType
Initializes a new instance of the DateTimeOffset structure using the specified DateTime value. | ||
Initializes a new instance of the DateTimeOffset structure using the specified DateTime value and offset. | ||
Initializes a new instance of the DateTimeOffset structure using the specified number of ticks and offset. | ||
Initializes a new instance of the DateTimeOffset structure using the specified year, month, day, hour, minute, second, and offset. | ||
Initializes a new instance of the DateTimeOffset structure using the specified year, month, day, hour, minute, second, millisecond, and offset. | ||
Initializes a new instance of the DateTimeOffset structure using the specified year, month, day, hour, minute, second, millisecond, and offset of a specified calendar. |
static readonly | MaxValue | DateTimeOffset (12/31/9999 11:59:59 PM +00:00).
Represents the greatest possible value of DateTimeOffset. This field is read-only. |
static readonly | MinValue | DateTimeOffset (1/1/0001 12:00:00 AM +00:00).
Represents the earliest possible DateTimeOffset value. This field is read-only. |
[read-only] | Date | DateTime.
Gets a DateTime value that represents the date component of the current DateTimeOffset object. |
[read-only] | DateTime | DateTime.
Gets a DateTime value that represents the date and time of the current DateTimeOffset object. |
[read-only] | Day | int.
Gets the day of the month represented by the current DateTimeOffset object. |
[read-only] | DayOfWeek | DayOfWeek.
Gets the day of the week represented by the current DateTimeOffset object. |
[read-only] | DayOfYear | int.
Gets the day of the year represented by the current DateTimeOffset object. |
[read-only] | Hour | int.
Gets the hour component of the time represented by the current DateTimeOffset object. |
[read-only] | LocalDateTime | DateTime.
Gets a DateTime value that represents the local date and time of the current DateTimeOffset object. |
[read-only] | Millisecond | int.
Gets the millisecond component of the time represented by the current DateTimeOffset object. |
[read-only] | Minute | int.
Gets the minute component of the time represented by the current DateTimeOffset object. |
[read-only] | Month | int.
Gets the month component of the date represented by the current DateTimeOffset object. |
[read-only] static | Now | DateTimeOffset.
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). |
[read-only] | Offset | TimeSpan.
Gets the time's offset from Coordinated Universal Time (UTC). |
[read-only] | Second | int.
Gets the second component of the clock time represented by the current DateTimeOffset object. |
[read-only] | Ticks | long.
Gets the number of ticks that represents the date and time of the current DateTimeOffset object in clock time. |
[read-only] | TimeOfDay | TimeSpan.
Gets the time of day for the current DateTimeOffset object. |
[read-only] | UtcDateTime | DateTime.
Gets a DateTime value that represents the Coordinated Universal Time (UTC) date and time of the current DateTimeOffset object. |
[read-only] static | UtcNow | DateTimeOffset.
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. |
[read-only] | UtcTicks | long.
Gets the number of ticks that represents the date and time of the current DateTimeOffset object in Coordinated Universal Time (UTC). |
[read-only] | Year | int.
Gets the year component of the date represented by the current DateTimeOffset object. |
Add(TimeSpan)
| ||
AddDays(double)
| ||
AddHours(double)
| ||
AddMilliseconds(double)
| ||
AddMinutes(double)
| ||
AddMonths(int)
| ||
AddSeconds(double)
| ||
AddTicks(long)
| ||
AddYears(int)
| ||
static | Compare(DateTimeOffset, DateTimeOffset)
| |
CompareTo(DateTimeOffset)
| ||
Equals(DateTimeOffset)
| ||
override | Equals(object)
| |
static | Equals(DateTimeOffset, DateTimeOffset)
| |
EqualsExact(DateTimeOffset)
| ||
static | FromFileTime(long)
| |
override | GetHashCode()
| |
static | Parse(string)
| |
static | Parse(string, IFormatProvider)
| |
static | Parse(string, IFormatProvider, System.Globalization.DateTimeStyles)
| |
static | ParseExact(string, string, IFormatProvider)
| |
static | ParseExact(string, string, IFormatProvider, System.Globalization.DateTimeStyles)
| |
static | ParseExact(string, string[], IFormatProvider, System.Globalization.DateTimeStyles)
| |
Subtract(DateTimeOffset)
| ||
Subtract(TimeSpan)
| ||
ToFileTime()
| ||
ToLocalTime()
| ||
ToOffset(TimeSpan)
| ||
override | ToString()
| |
ToString(IFormatProvider)
| ||
ToString(string)
| ||
ToString(string, IFormatProvider)
| ||
ToUniversalTime()
| ||
static | TryParse(string, out DateTimeOffset)Documentation for this section has not yet been entered. | |
static | TryParse(string, IFormatProvider, System.Globalization.DateTimeStyles, out DateTimeOffset)Documentation for this section has not yet been entered. | |
static | TryParseExact(string, string, IFormatProvider, System.Globalization.DateTimeStyles, out DateTimeOffset)Documentation for this section has not yet been entered. | |
static | TryParseExact(string, string[], IFormatProvider, System.Globalization.DateTimeStyles, out DateTimeOffset)Documentation for this section has not yet been entered. |
static | Addition(DateTimeOffset, TimeSpan) |
Adds a specified time interval to a DateTimeOffset object that has a specified date and time, and yields a DateTimeOffset object that has new a date and time. |
static | Equality(DateTimeOffset, DateTimeOffset) |
Determines whether two specified DateTimeOffset objects represent the same point in time. |
static | GreaterThan(DateTimeOffset, DateTimeOffset) |
Determines whether one specified DateTimeOffset object is greater than (or later than) a second specified DateTimeOffset object. |
static | GreaterThanOrEqual(DateTimeOffset, DateTimeOffset) |
Determines whether one specified DateTimeOffset object is greater than or equal to a second specified DateTimeOffset object. |
static | Inequality(DateTimeOffset, DateTimeOffset) |
Determines whether two specified DateTimeOffset objects refer to different points in time. |
static | LessThan(DateTimeOffset, DateTimeOffset) |
Determines whether one specified DateTimeOffset object is less than a second specified DateTimeOffset object. |
static | LessThanOrEqual(DateTimeOffset, DateTimeOffset) |
Determines whether one specified DateTimeOffset object is less than a second specified DateTimeOffset object. |
static | Subtraction(DateTimeOffset, DateTimeOffset) |
Subtracts one DateTimeOffset object from another and yields a time interval. |
static | Subtraction(DateTimeOffset, TimeSpan) |
Subtracts a specified time interval from a specified date and time, and yields a new date and time. |
static | Conversion to System.DateTimeOffset(Implicit) | Documentation for this section has not yet been entered. |
IComparable.CompareTo |
Compares the value of the current DateTimeOffset object with another object of the same type. | |
System.Runtime.Serialization.ISerializable.GetObjectData |
Populates a System.Runtime.Serialization.SerializationInfo object with the data required to serialize the current DateTimeOffset object. | |
System.Runtime.Serialization.IDeserializationCallback.OnDeserialization |
Runs when the deserialization of an object has been completed. |