Retrieves the number of whole hours represented by the current instance.
[Visual Basic] Public ReadOnly Property Hours As Integer [C#] public int Hours {get;} [C++] public: __property int get_Hours(); [JScript] public function get Hours() : int;
Read only.
The value is an integer between 0 and 23 corresponding to the hour of the day represented by the current instance.
Note that if ToString returns "+d.hh:mm:ss", the return value of GetHours is hh.
TimeSpan Structure | TimeSpan Members | System Namespace | Int64