SECOND

SECOND function (Date & Time) returns a value of the seconds for a given time.

Syntax

SECOND(t)

Description

Returns a value of the seconds for a given time. Subseconds are included for DATETIME datatypes.

Example

  1. SECOND(TO_TIME(‘12:34:56’))

    This example returns the value 56 for the seconds of the specified time.

  2. SECOND(‘2014-03-25 12:34:56.789’)

    This example returns the value 56.789 for the subseconds of the specified time.