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

SECOND(A)

  • Dark
    Light
  • PDF

Article summary

DateTime Transform: SECOND(A)

Returns the SECOND portion of DateTime A

Purpose

Use this function to:
  • Extract the second section of a DateTime string

Return Value

PropertyValue
FieldTypeInteger
FieldSizeMed
DataTypeDiscrete
DataSizeShort


Example Return Value: 0 to 59

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”: “SECOND(A)”SECOND(A)
A“p2”: “DateTimeFieldName”
“p2”: “#YYYY-MM-DD HH:MM:SS”

Required.  The DateTime string from which to extract the seconds
Supports:  
  • DataType: Discrete / Continuous
  • Field Type: Date, DateTime
  • Fixed Value:  #YYYY-MM-DD,    e.g. #2021-04-05
  • Fixed Value:  #YYYY-MM-DD HH:MM:SS,    e.g. #2021-04-05 11:01:08

JSON Sample

Usage Notes

To return the number of seconds since the start of the day, use the SOD(A) function. 

See Also:

  • MINUTE(A)  (DateTime)
  • HOUR(A)   (DateTime)
  • Engineering | Expression Field

Example

ExampleDetails
DescriptionGroup transactions by the second
Input
  • Table: = [transactions]
  • Function: = DateTimeTransform
  • DateTimeFunction: = SECOND(A)
  • A:= [transactions].[dtPurchase]
  • Name: =SECOND_A
Sample



Was this article helpful?

What's Next