This documentation is archived and is not being maintained.
DateTimeOffset Properties
Visual Studio 2010
The DateTimeOffset type exposes the following members.
| Name | Description | |
|---|---|---|
|
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. |
|
Hour | Gets the hour component of the time represented by the current DateTimeOffset object. |
|
LocalDateTime | Gets a DateTime value that represents the local date and time of the current DateTimeOffset 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. |
|
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). |
|
Second | Gets the second component of the clock time represented by the current DateTimeOffset object. |
|
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. |
|
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. |
Show: