Support

Equilla Formula Language

Hour

Returns the hours component of a time.

Inputs

Time
Numeric: Time or DateTime value.

Examples

Write the components of the current date and time to the output window
If IsLastBar Then Begin ClearDebug(); Print( "Year=" + CStr( Year( Now ) ) ); Print( "Month=" + CStr(Month( Now ) ) ); Print( "Day=" + CStr( Day( Now ) ) ); Print( "Hour=" + CStr( Hour( Now ) ) ); Print( "Minute=" + CStr( Minute( Now ) ) ); Print( "Second=" + CStr( Second( Now ) ) ); Print( "MilliSecond=" + CStr( MilliSecond( Now ) ) ); End;