Contents Index HEXTOINT function [Data type conversion] HOURS function [Date and time]

ASA SQL Reference
  SQL Functions
    Alphabetical list of functions

HOUR function [Date and time]


Function 

Returns a number from 0 to 23 corresponding to the hour component of a datetime.

Syntax 

HOUR ( datetime-expression )

Parameters 

datetime-expression    The datetime.

Standards and compatibility 
Example 

The following statement returns the value 21:

SELECT HOUR( '1998-07-09 21:12:13' )

Contents Index HEXTOINT function [Data type conversion] HOURS function [Date and time]