DateTime Transform: TRUNKSEC(A)
Truncates DateTime A to the nearest minute
Purpose
Use this function to:
- Group DateTime data into minute segments
Return Value
| Property | Value |
|---|---|
| FieldType | DateTime |
| FieldSize | Continuous |
| DataType | Continuous |
| DataSize | LongInteger |
Example Return Value: [Date] HH:MM:00
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”: “TRUNKSEC(A)” | TRUNKSEC(A) |
| A | “p2”: “DateTimeFieldName” “p2”: “DateFieldName” “p2”: “#YYYY-MM-DD HH:MM:SS” “p2”: “#YYYY-MM-DD” | Required. The DateTime String to truncate Supports:
|
JSON Sample
Usage Notes
See FLOORMIN(A,B) for more options on truncating/segmenting DateTime fields.
Example
| Example | Details |
|---|---|
| Description | Group purchase time-stamps into minute segments |
| Input |
|
| Sample | ![]() |
