second

Returns the seconds of a time or date-time value as a number.

Function

result = second(input)

Arguments

ArgumentData Type
inputtime (datetime will be implicitly cast to time)
resultinteger

Comments

Returns the second of a time as a number from 0 to 59.

This function operates in the local time-zone if a datetime input is provided. See Dates, Times and Time Zones.

Examples

result = second(#16:43:59#) /* result = 59 */
result = second(getdate())