Documentation

second

Seconds of date or time

Syntax

Seconds = second(Date)

Description

Seconds = second(Date) returns the seconds given a serial date number or a date string.

Examples

Seconds = second(738647.558427893)

or

Seconds = second('06-May-2022, 13:24:08.17')

returns

Seconds =

          8.1700

Related Examples

See Also

| |

Introduced before R2006a

Was this topic helpful?