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

See Also

datevec, hour, minute

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS