Hari Libur Indonesia
v1.0.0Indonesian holidays and cuti bersama 2025-2027 (SKB 3 Menteri) plus working-day math.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
daftar_libur Daftar hari libur / List holidays
Daftar libur nasional dan cuti bersama Indonesia per tahun (opsional per bulan), sesuai SKB 3 Menteri, lengkap dengan nomor SKB dan sumber. Lists Indonesian national public holidays and collective leave for 2025, 2026, 2027. Offline, free.
| Parameter | Type | Description |
|---|---|---|
year * | integer | Year (2025, 2026, 2027). |
include_cuti_bersama | boolean | Include cuti bersama (collective leave). Default true. |
month | integer | Optional month 1-12. |
cek_tanggal Cek tanggal / Check a date
Cek apakah suatu tanggal libur nasional, cuti bersama, akhir pekan, atau hari kerja, beserta alasannya. Checks whether a date is a holiday, weekend or working day in Indonesia, with the reason. Default date: today (Asia/Jakarta).
| Parameter | Type | Description |
|---|---|---|
cuti_bersama_off | boolean | Treat cuti bersama (collective leave) as a day off. Default true. Set false for businesses that work on cuti bersama. |
date | string | Date as YYYY-MM-DD (also DD-MM-YYYY, DD/MM/YYYY, or "today"/"hari ini" in Asia/Jakarta). Default today. |
saturday_working | boolean | Saturday is a working day (6-day work week). Default false. National holidays on Saturday stay off. |
hitung_hari_kerja Hitung hari kerja / Count working days
Menghitung jumlah hari kerja di antara dua tanggal (tidak termasuk akhir pekan, libur nasional, dan opsional cuti bersama). Counts Indonesian working days between two dates, inclusive of both by default. Reversed ranges are swapped.
| Parameter | Type | Description |
|---|---|---|
end * | string | End date (inclusive). Date as YYYY-MM-DD (also DD-MM-YYYY, DD/MM/YYYY, or "today"/"hari ini" in Asia/Jakarta). |
start * | string | Start date. Date as YYYY-MM-DD (also DD-MM-YYYY, DD/MM/YYYY, or "today"/"hari ini" in Asia/Jakarta). |
count_start | boolean | Count the start date itself. Default true. Set false for "working days after start, up to and including end". |
cuti_bersama_off | boolean | Treat cuti bersama (collective leave) as a day off. Default true. Set false for businesses that work on cuti bersama. |
saturday_working | boolean | Saturday is a working day (6-day work week). Default false. National holidays on Saturday stay off. |
hari_kerja_berikutnya Tambah hari kerja / Add working days
Tanggal setelah N hari kerja dari suatu tanggal (untuk SLA, tenggat, estimasi pengiriman). N negatif = mundur. N=0 = hari kerja terdekat. Adds N Indonesian working days to a date (start date not counted), skipping weekends, holidays and optionally cuti bersama.
| Parameter | Type | Description |
|---|---|---|
n * | integer | Working days to add (negative = go back, 0 = this date if it is a working day, else the next one). |
cuti_bersama_off | boolean | Treat cuti bersama (collective leave) as a day off. Default true. Set false for businesses that work on cuti bersama. |
date | string | Start date. Date as YYYY-MM-DD (also DD-MM-YYYY, DD/MM/YYYY, or "today"/"hari ini" in Asia/Jakarta). Default today. |
saturday_working | boolean | Saturday is a working day (6-day work week). Default false. National holidays on Saturday stay off. |