SECOND()

All functions > DATE AND TIME > SECOND()

Returns the second component of a date or timestamp.

Signatures

Returns: The second component

SECOND(timestamp: T) → BIGINT
sql
ParameterTypeRequiredDescription
timestampTYesA DATE or TIMESTAMP value

With:

  • T : Custom types: DATE | TIMESTAMP

Notes

  • Permissive spelling of DATE_PART(timestamp, 'second')
  • Also accepts TIMESTAMP

Examples

FeatureQL
RETURN
    -- Extract second
    f1 := DATE_PART(FROM_ISO8601_TIMESTAMP('2024-03-15T10:30:45'), 'second')
;
Result
f1 BIGINT
45