NAnt SDK Documentation - v0.92 |
|
DateTimeFunctions.GetHour Method
Gets the hour component of the specified date.
[Visual Basic]
<Function(Name:="get-hour")>
Public Shared Function GetHour( _
ByVal
date As
Date _
) As
Integer
[C#]
[Function(Name="get-hour")]
public static
int GetHour(
DateTime date);
Parameters
-
date
- The date of which to get the hour component.
Return Value
The hour, between 0 and 23.
See Also
DateTimeFunctions Class | NAnt.Core.Functions Namespace