Fungsi Detik
Mengembalikan integer yang mewakili detik dari nomor waktu seri yang dihasilkan oleh fungsi TimeSerial atau TimeValue.
Sintaksis:
Second (Angka)
Nilai hasil:
Integer
Parameter:
Number: Numeric expression that contains the serial time number that is used to calculate the number of seconds.
This function is the opposite of the TimeSerial function. It returns the seconds of a serial time value that is generated by the TimeSerial or TimeValue functions. For example, the expression:
Print Second(TimeSerial(12,30,41))
menghasilkan nilai 41.
Contoh:
Sub ExampleSecond
MsgBox "The exact second of the current time is "& Second( Now )
End Sub