Hour()

语法

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

参数

Date The date from which to extract the hour.

返回值

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

示例

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

参阅

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

已支持操作系统

所有

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