Click or drag to resize
TimeSpanHours Property
Gets the hours component of the time interval represented by the current TimeSpan structure.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public int Hours { get; }

Return Value

Type: Int32
The hour component of the current TimeSpan structure. The return value ranges from -23 through 23.
See Also