ID EN
#Date and time

TIME

Excel Functions 🇮🇩 Bahasa Indonesia

Buat waktu yang valid dengan jam, menit, dan detik

Syntax

EXCEL
=TIME(hour, minute, second)

Arguments

Parameter Deskripsi
hour Number of hours.
minute Number of minutes.
second Number of seconds.

Return Value

Angka desimal yang mewakili waktu di Excel.

Details

Fungsi TIME membuat waktu Excel yang valid menggunakan nilai yang diberikan untuk jam, menit, dan detik. Seperti semua waktu Excel, hasilnya adalah angka yang mewakili pecahan hari. Fungsi TIME hanya akan mengembalikan nilai waktu hingga satu hari penuh, antara 0 (nol) hingga 0,99999999, atau 0:00:00 hingga 23:59:59. Untuk melihat hasil yang diformat sebagai waktu, terapkan format angka berbasis waktu. Manfaat utama fungsi TIME adalah kemudahan memasukkan waktu dengan nilai terpisah untuk jam, menit, dan detik. Hal ini analog dengan fungsi DATE, yang membuat tanggal dengan nilai terpisah untuk tahun, bulan, dan hari. Fungsi TIME mengembalikan waktu yang valid sebagai angka, namun cara Excel menampilkan hasilnya bergantung pada format angka. Excel dapat menampilkan hasil tersebut sebagai waktu dengan akhiran AM/PM, waktu 24 jam seperti 1

Contoh

Basic example
EXCEL
=TIME(3,0,0) // 3 hours
=TIME(0,3,0) // 3 minutes
=TIME(0,0,3) // 3 seconds
=TIME(8,30,0) // 8.5 hours
Time formatting

The TIME function returns a valid time as a number, but the way Excel displays the result depends on number formatting. Excel can display that result

EXCEL
h:mm AM/PM
h:mm:ss
0.0
Larger units

The TIME function can interpret units in larger increments. For example, both of the formulas below return 2 hours:

EXCEL
=TIME(0,120,0) // 2 hours
=TIME(0,0,7200) // 2 hours
Larger units

However, TIME will not handle numeric inputs larger than 32,767. For example, even though there are 86,400 seconds in a day, the following formula (wh

EXCEL
=TIME(0,0,43200) // returns #NUM!
Time over 24 hours

It's important to understand that TIME only returns results up to 24 hours. When the total time exceeds 24 hours, the TIME function will "reset" to ze

EXCEL
=TIME(12,0,0) // returns 0.5 (12 hours)
=TIME(18,0,0) // returns 0.75 (18 hours)
=TIME(24,0,0) // returns 0 (0 hours)
=TIME(36,0,0) // returns 0.5 (12 hours)
=TIME(48,0,0) // returns 0 (0 hours)
Time over 24 hours

Notice TIME returns 0 for 24 hours and 48 hours above. In this way, the behavior of the TIME function is similar to a 24-hour clock that resets at mid

EXCEL
=(hours/24)+(minutes/1440)+(seconds/86400)

See Also

DATE