System.DateTimeOffset: Property Members

The properties of System.DateTimeOffset are listed below. For a list of all members, see the DateTimeOffset Members list.

See Also: Inherited members from System.ValueType

Public Properties

[read-only]
DateDateTime.

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

[read-only]
DateTimeDateTime.

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

[read-only]
Dayint.

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

[read-only]
DayOfWeekDayOfWeek.

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

[read-only]
DayOfYearint.

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

[read-only]
Hourint.

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

[read-only]
LocalDateTimeDateTime.

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

[read-only]
Millisecondint.

Gets the millisecond component of the time represented by the current DateTimeOffset object.

[read-only]
Minuteint.

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

[read-only]
Monthint.

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

[read-only]
static
NowDateTimeOffset.

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]
OffsetTimeSpan.

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

[read-only]
Secondint.

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

[read-only]
Tickslong.

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

[read-only]
TimeOfDayTimeSpan.

Gets the time of day for the current DateTimeOffset object.

[read-only]
UtcDateTimeDateTime.

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

[read-only]
static
UtcNowDateTimeOffset.

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]
UtcTickslong.

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

[read-only]
Yearint.

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