second
Seconds part of the input date and time.
📝Syntax
s = second(t)
s = second(t, formatIn)
📥Input Arguments
Parameter Description
t serial date number or text inputs
formatIn valid date format
📤Output Arguments
Parameter Description
s a double: integer value.
📄Description

s = second(t) extracts the second component from each date and time specified in t.

The output s is a double array containing integer values ranging from 0 to 59.

💡Examples
s = second(738427.656845093)
s = second("2021/09/28 15:45:51", 'YYYY/M/DD HH:MM:SS')
🔗See Also
minutehour
🕔Version History
Version Description
1.10.0 initial version
Edit this page on GitHub