SOD(A)
- 1 Minute to read
- Print
- DarkLight
- PDF
SOD(A)
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
DateTime Transform: SOD(A)
Returns the number of seconds since the start of the day in DateTime A
Purpose
Use this function to:
- Calculate the number of elapsed seconds since the start of the day
Return Value
Property | Value |
---|---|
FieldType | Integer |
FieldSize | Med |
DataType | Discrete |
DataSize | Short |
Example Return Value: 0 to 85399
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”: “SOD(A)” | SOD(A) |
A | “p2”: “DateTimeFieldName” “p2”: “#YYYY-MM-DD HH:MM:SS” | Required. The Datetime string from which to calculate seconds of the day. Supports:
|
JSON Sample
Usage Notes
To return the second digits of DateTime field A, use the SECOND(A) function.
See Also
- HOD(A) (DateTime)
- MOD(A) (DateTime)
- Engineering | Expression Field
Example
Example | Details |
---|---|
Description | Calculate number of seconds since the start of the day that purchase occurred |
Input |
|
Sample |
Was this article helpful?