ID EN
#Date and time

SECOND

Excel Functions 🇮🇩 Bahasa Indonesia

Dapatkan Yang Kedua sebagai angka (0-59) dari suatu Waktu

Syntax

EXCEL
=SECOND(serial_number)

Arguments

Parameter Deskripsi
serial_number A valid time in a format Excel recognizes.

Return Value

Angka antara 0 dan 59

Details

Fungsi SECOND mengekstrak komponen kedua dari waktu sebagai angka antara 0-59. For example, given a time of "12:15:01", SECOND will return 1. The SECOND function takes just one argument, serial_number, which must be a valid Excel date, a valid Excel time, or a text value Excel can interpret as a time (e.g. "7:45:30 PM"). Fungsi SECOND tidak mengubah waktu menjadi detik melainkan mengekstrak komponen detik dari waktu. For example, given a time duration of 10 minutes (600 seconds) the SECONDS function will return 0 (zero), since seconds are zero in the time 10:00. Artinya fungsi KEDUA akan "direset" ke 0 setiap 60 detik (seperti jam). Untuk mengubah nilai waktu menjadi detik desimal, lihat contoh ini. Untuk membuat nilai waktu dari awal dengan jam, menit, dan an yang terpisah

Contoh

Examples

When given the time "10:45:17 AM", the SECOND function will return 17:

EXCEL
=SECOND("10:45:17 AM") // returns 17
Examples

With the time "2:19:36" in cell A1, SECOND will return 36:

EXCEL
=SECOND(A1) // returns 36
Examples

The formula below demonstrates how the TIME function can be used to create the time 9:30:45 in Excel:

EXCEL
=TIME(9,30,45)
Examples

If we wrap the SECONDS function around the TIME function, we get 45, as expected:

EXCEL
=SECOND(TIME(9,30,45)) // returns 45
Fractional seconds

To extract fractional seconds while maintaining precision, you can use a formula like this:

EXCEL
=MOD(C5*1440,1)*60

See Also

HOUR MINUTE SECOND TIME