YMDH(A)
- 1 Minute to read
- Print
- DarkLight
- PDF
YMDH(A)
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
DateTime Transform: YMDH(A)
Returns Year Month Day Hour of DateTime A in the format YYYYMMDDHH
Purpose
Use this function to:
- Create a discrete DataType from a continuous DateTime field ready for use in further engineering and analytical operations.
Return Value
Property | Value |
---|---|
FieldType | Integer |
FieldSize | Low / Med / High |
DataType | Discrete |
DataSize | Short / Integer |
Example Return Value: YYYYMMDDH: 2020010101....2020010119....
Parameters
Parameter | JSON | Description |
---|---|---|
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”: “” | |
A | “p2”: “DateTimeFieldName” “p2”: “#YYYY-MM-DD HH:MM:SS” | Required. DateTime string from which to extract Year Month Day Hour Supports:
|
JSON Sample
Usage Notes
To create discrete DataTypes that retain minute and second granularity, considering creating an ElapsedMins or ElapsedSecs field using MINSDIFF(A,B) or SECSDIFF(A,B), where A = DateTime Field and B = Min(A)
Example
Example | Details |
---|---|
Description | Create Year Month Day Hour |
Input |
|
Sample |
Was this article helpful?