NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TimeSpan.Hours

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;

Property Value

Read only.

The value is an integer between 0 and 23 corresponding to the hour of the day represented by the current instance.

Remarks

Note that if ToString returns "+d.hh:mm:ss", the return value of GetHours is hh.

See Also

TimeSpan Structure | TimeSpan Members | System Namespace | Int64