Mono Class Library: System.DateTime Overview | Members

System.DateTime.Hour Property

Gets the hour represented by the current instance.

public int Hour { get; }

Value

A int between 0 and 23 set to the hour component of the current instance.

Remarks

This property is read-only.

Requirements

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