傳回一個整數,表示由 TimeSerial 或 TimeValue 函數產生的順序時間數所對應的秒數。
Second(Number)
Integer
此函數是 TimeSerial 函數的逆運算,傳回由 TimeSerial 或 TimeValue 函數產生的順序時間值所對應的秒值。例如,表示式:
此函數是 TimeSerial 函數的逆運算。它會依 TimeSerial 或 TimeValue 函數所產生連續時間值的秒數。例如,表示式:
傳回值為 41。
錯誤代碼
5 無效的程序呼叫
Sub ExampleSecond
MsgBox "The exact second of the current time is "& Second( Now )
End sub