Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

D toc

Derives the hour value from a Datetime value. Generated hours are expressed according to the 24-hour clock.

  • Source value can be a reference to a column containing literal or Datetime values.
  • If the source Datetime value does not include a valid input for this function, a missing value is returned.

D s

D code

derive type:single value:HOUR(MyDate)

Output: Generates a column of values that retrieve the two-digit hour values from the MyDate column.

D s

D code

derive type:single value:HOUR(datetime_col)

ArgumentRequired?Data TypeDescription
datetime_colYdatetimeName of column whose hour values are to be computed

D s lang notes


Name of the column whose hour value is to be computed.

  • Missing values for this function in the source data result in missing values in the output.
  • Invalid or out-of-range source values generate missing values in the output.
  • Multiple columns and wildcards are not supported.

D s


Required?Data TypeExample Value

D s

Example - Date element functions

Include Page
EXAMPLE - Date Functions
EXAMPLE - Date Functions

D s also