Gets the hour component of the specified date.
int datetime::get-hour(date)
Parameters
Name | Type | Description |
---|---|---|
date | DateTime | The date of which to get the hour component. |
Return Value
The hour, between 0 and 23.
Requirements
- Assembly
- NAnt
.Core .dll - Namespace
-
NAnt
.Core .Functions