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!

Calendar.GetHour

Returns the hour part of the specified DateTime.

[Visual Basic]
Overridable Public Function GetHour( _
   ByVal time As DateTime _
) As Integer
[C#]
public virtual int GetHour(
   DateTime time
);
[C++]
public: virtual int GetHour(
   DateTime time
);
[JScript]
public function GetHour(
   time : DateTime
) : int;

Parameters

time
The DateTime instance.

Return Value

The hour part of the specified DateTime. The returned value is an integer between 0 and 23.[RB19]

Remarks

The returned value is an integer between 0 and 23.[RB20]

See Also

Calendar Class | Calendar Members | System.Globalization Namespace