Hour()

Syntax

Result = Hour(Date)
Description
Returns the hour value of the specified date.

Parameters

Date The date from which to extract the hour.

Return value

Returns the hour component of the date. The result is always between 0 and 23.

Example

  Debug Hour(Date(1970, 1, 1, 11, 3, 45))  ; Outputs '11'.

See Also

FormatDate(), Year(), Month(), Day(), Minute(), Second()

Supported OS

All

<- FormatDate() - Date Index - Minute() ->