System.DateTimeOffset.Hour Property

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

Syntax

public int Hour { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The DateTimeOffset.Hour property is not affected by the value of the DateTimeOffset.Offset property.

You can also create a string representation of a DateTimeOffset object's hour component by calling the erload:System.DateTimeOffset.ToString method with the "H", or "HH" custom format specifiers.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0