HOUR(A)
  • 1 Minute to read
  • Dark
    Light
  • PDF

HOUR(A)

  • Dark
    Light
  • PDF

Article summary

DateTime Transform: HOUR(A)

Returns the Hour portion of DateTime A

Purpose

Use this function to:
  • Extract the hour function of a TimeStamp
  • Return the hour portion of a date time field

Return Value

PropertyValue
FieldTypeInteger
FieldSizeMed
DataTypeDiscrete
DataSizeShort


Example Return Value:  0.....23

Parameters

ParameterJSONDescription
Table“targetTable”: “MyTableName”The target table on which the new field will be created
Filter“dataset”: {DataSet_JSON}Optional.   If a filter is applied, records not in the filter Recordset will be returned as null.
DateTime Function“p1”: “HOUR(A)”HOUR(A)
A“p2”: “DateTimeFieldName”
“p2”: “#YYYY-MM-DD HH:MM:SS”

Required. 
Supports:  
  • DataType: Discrete / Continuous
  • Field Type: DateTime
  • Fixed Value:  #YYYY-MM-DD HH:MM:SS,    e.g. #2021-04-05 11:01:08

JSON Sample

Usage Notes

{Insert Notes Here}

Example

ExampleDetails
DescriptionExtract Hour portion from DateTime field
Input
  • Table: = [transactions]
  • Function: = DateTimeTransform
  • DateTimeFunction: = HOUR(A)
  • A:= [transactions].[DateTime]
  • Name: =Hour_DateTme
Sample



Was this article helpful?