Applies to:  CELONIS 4.0 CELONIS 4.2 CELONIS 4.3 CELONIS 4.4 

Description

Returns the hour of a given date.

Supported input column types: DATE

Output column type: INT

Syntax

HOURS ( table.column )

Null handling

If any parameter is NULL, the result is NULL

Example

Simple example for the HOURS operator.
Query
Column1
HOURS ( "Table1"."Column1" )
Input
Table1
Column1 : DATE
Mon Jan 01 2018 00:00:00.000
Mon Jan 01 2018 12:30:00.000
Mon Jan 01 2018 23:45:00.000
Output
Result
Column1 : INT
0
12
23
  • No labels