Hour |
Description
Gets the current hour of the day.
Returns
Ordinal value of the hour, in the range 0 - 23.
Category
Date and time functions
Function syntax
    Hour(date)
See also
DatePart, Minute, Second
Parameters
Parameter | Description
date | Date/time object, in the range 100 AD-9999 AD.
Usage
When passing a date/time value as a string, you must enclose it in quotation marks. Otherwise, it is interpreted as a number representation of a date/time object.
Example
    <!--- This example shows the use of Hour, Minute, and Second --->
    <h3>Hour Example</h3>
    <cfoutput>
    The time is currently #TimeFormat(Now())#.
    We are in hour #Hour(Now())#, Minute #Minute(Now())#
    and Second #Second(Now())# of the day.
    </cfoutput>

date |
Date/time object, in the range 100 AD-9999 AD.