Second (function)

<< Click to Display Table of Contents >>

Second (function)

Second(Expression)

Returns the second of the given time as an integer number.

Expression is a numeric or a string expression which represents a time.

See also: Date, Day, Hour, Minute, Month, Now, Time, Weekday, Year

Example:

Sub Main

 T1 = Now     ' Now = current date + time

 MsgBox T1

 MsgBox "Day: " & Day(T1)

 MsgBox "Month: " & Month(T1)

 MsgBox "Year: " & Year(T1)

 MsgBox "Hours: " & Hour(T1)

 MsgBox "Minutes: " & Minute(T1)

 MsgBox "Seconds: " & Second(T1)

End Sub