Gets the hours component of the time interval represented by the current
TimeSpan structure.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public int Hours { get; }
Return Value
Type:
Int32The hour component of the current
TimeSpan structure. The return value ranges from -23 through 23.
See Also