Minggu, 27 September 2026
22:05 WIB
TERKINI
Bola Lampard Gemilang dengan Coventry: Dari Championship ke Liga Primer, Dipuji Rekan Edukasi Moreno Sidharta: Otodidak Raih Medali Emas Olimpiade Matematika Internasional Bola Mantan Bintang Spanyol Dorong Haaland ke Barcelona: Cocok Gaya Main Flick Lampung Maulid Arbain Lampung Sembilan Tahun: Penguatan Akhlak dan SDM Jadi Prioritas Humaniora Ribuan Warga Hadiri Penutupan Maulid Arbain Lampung 2026: Perkuat Akhlak dan Anti Narkoba Cuaca Ratusan Titik Panas Terdeteksi di Lampung: Way Kanan Paling Banyak Disorot Bandar Lampung BMKG Ungkap Penyebab Kemarau Panjang di Lampung: El Nino Kuat dan Hujan Lokal Bandar Lampung Mantan Gubernur Lampung Disidang Korupsi PI 10 Persen, Begini Respons Uniknya Account Satu Akun, Berbagai Akses: Kemudahan Login Terpadu KG Media ID Bandar Lampung Semangat Anak Sawah: Harumkan Nama Lampung di Kancah Nasional Tanpa Dukungan Pemda Bola Lampard Gemilang dengan Coventry: Dari Championship ke Liga Primer, Dipuji Rekan Edukasi Moreno Sidharta: Otodidak Raih Medali Emas Olimpiade Matematika Internasional Bola Mantan Bintang Spanyol Dorong Haaland ke Barcelona: Cocok Gaya Main Flick Lampung Maulid Arbain Lampung Sembilan Tahun: Penguatan Akhlak dan SDM Jadi Prioritas Humaniora Ribuan Warga Hadiri Penutupan Maulid Arbain Lampung 2026: Perkuat Akhlak dan Anti Narkoba Cuaca Ratusan Titik Panas Terdeteksi di Lampung: Way Kanan Paling Banyak Disorot Bandar Lampung BMKG Ungkap Penyebab Kemarau Panjang di Lampung: El Nino Kuat dan Hujan Lokal Bandar Lampung Mantan Gubernur Lampung Disidang Korupsi PI 10 Persen, Begini Respons Uniknya Account Satu Akun, Berbagai Akses: Kemudahan Login Terpadu KG Media ID Bandar Lampung Semangat Anak Sawah: Harumkan Nama Lampung di Kancah Nasional Tanpa Dukungan Pemda

Templat:Waktu

templat Wikimedia

Dokumentasi templatlihatsuntingriwayatsegarkan
Untuk fungsi pengurai #waktu, lihat #time.
Templat ini menggunakan Lua:

Templat ini menampilkan waktu terkini pada sebuah zona waktu yang ditentukan oleh suatu parameter. Waktu tersebut dihitung berdasarkan selisihnya dengan UTC untuk suatu zona waktu tertentu dengan mempertimbangkan apakah waktu musim panas sedang berlangsung pada suatu wilayah zona waktu tersebut.

Catatan: Sebagian besar laman Wikipedia menampilkan versi cache dari halaman tersebut guna mengurangi beban server, sehingga templat ini hanya akan menampilkan waktu terkini ketika kali terakhir laman templat ini diurai. Anda dapat memperbarui waktu yang tertera dengan mengeklik tautan [refresh].


Parameter

{{time}} mendukung dua posisi dan beberapa parameter bernama; tidak ada yang diperlukan:

|<time zone> – posisi pertama parameter (tak bernama), menspesifikasikan zona waktu yang templat tersebut akan memberikan luaran informasi waktu. Jika dihilangkan, templat menampilkan waktu UTC. Suatu zona waktu diidentifikasi dengan suatu singkatan dari nama baku suatu zona waktu. Jangan gunakan singkatan waktu musim panas; karena akan diabaikan dan menghasilkan pesan eror.
|<df> – bentuk posisi |df= tak bernama yang menjumpai
|df= – format tanggal; parameter ini mengambil satu di antara beberapa nilai; selain nilai di bawah ini akan diabaikan:
|df=dmy – menentukan format penanggalan hari bulan tahun; yang format waktunya merupakan 24 jam; alias: |df=dmy24
09:05, 27 September 2026 MDT [segarkan]
|df=dmy12 – sama seperti |df=dmy dengan pengecualian format waktu yang digunakan adalah 12 jam am/pm
9:05 am, 27 September 2026 MDT [segarkan]
|df=mdy – menentukan format penanggalan bulan hari, tahun; yang format waktunya adalah 24 jam; merupakan bentuk bawaan ketika format penanggalan tidak ditentukan pada ciri zona waktu; alias: |df=mdy24
09:05, September 27, 2026 MDT [segarkan]
|df=mdy12 – sama seperti |df=mdy dengan pengecualian format waktu yang digunakan adalah 12 jam am/pm
9:05 am, September 27, 2026 MDT [segarkan]
|df=iso – membuat tanggal/waktu dalam bentuk yang mengikuti format ISO 8601 format (detik dihilangkan)
2026-09-27T09:05 MDT [segarkan]
|df=y – legasi parameter {{time}}, sama seperti |df=dmy
|df=12 – hanya menampilkan format waktu 12 jam
9:05 am MDT [segarkan]
|df=24 – hanya menampilkan format waktu 24 jam
09:05 MDT [segarkan]
|df-cust= – format kustom waktu/tanggal yang menggunakan kode yang didefinisikan pada mw:Help:Extension:ParserFunctions##time; yang menghasilkan |df=
|df-cust-a= – format kustom waktu/tanggal seperti di atas terutama untuk waktu ante meridiem; yang memerlukan |df-cust-p=; untuk menghasilkan |df-cust=
|df-cust-p= – format kustom waktu/tanggal seperti di atas terutama untuk waktu post meridiem; yang memerlukan |df-cust-a=; untuk menghasilkan |df-cust=
|dst= – ketika diset no, perhitungan waktu musim panas untuk suatu zona waktu akan dinonaktifkan; nilai lainnya diabaikan; sangat berguna untuk wilayah zona waktu yang tidak menerapkan waktu musim panas; misalkan Arizona
|lang=<code> – menampilkan waktu/tanggal dalam bahasa yang ditentukan berdasar <code> bahasa ISO 639
parameter ini hanya mengambil nilai yes:
|dateonly= – menyembunyikan tampilan waktu
|timeonly= – menyembunyikan tampilan tanggal
|hide-refresh= – menyembunyikan tautan refresh
|hide-tz= – menyembunyikan singkatan zona waktu standar
|unlink-tz= – menyampaikan singkatan zona waktu yang tidak terhubung
|_TEST_TIME_= – parameter yang berguna selama kode templat dikembangkan. Nilai yang ditempatkan pada parameter ini harus tercantum pada format ISO 8601 tanpa penunjuk zona waktu (2026-09-27T15:05:54), atau format YYYYMMDDhhmmss (tahun bulan hari jam menit detik) sebagai luaran dari {{Timestamp}} (Templat:Timestamp). Hal ini akan ditafsirkan oleh templat sebagai waktu UTC.

Penggunaan

Biasanya, segala yang dibutuhkan adalah:

{{time|<TZ>}} yang mana <TZ> merupakan singkatan dari zona waktu yang didukung
{{time|MST}}
09:05, September 27, 2026 MDT [segarkan]

Untuk mengubah format yang telah diberi:

{{time|MST|df=y}}
09:05, 27 September 2026 MDT [segarkan]
{{time|MST|y}}
09:05, 27 September 2026 MDT [segarkan]
{{time|MST|dmy}}
09:05, 27 September 2026 MDT [segarkan]
{{time|MST|iso}}
2026-09-27T09:05 MDT [segarkan]

Zona waktu yang didukung

Berikut ini merupakan daftar singkatan zona waktu yang terdukung pada templat ini:

  1. ↑
  2. ↑ Irish Standard Time. The abbreviation, IST, is also used for Indian Standard Time. Irish Standard Time occurs in the summer. For these reasons, the template uses GMT-IE as the time zone abbreviation for Ireland.
  3. ↑ GMT does not observe daylight saving time. The United Kingdom observes GMT in winter but shifts to British Summer Time in summer. The abbreviation BST is also used by Bangladesh Standard Time. To differentiate GMT as observed in the UK from year-round GMT, use GMT-UK for the former.
  4. 1 2 Not standard time zones, these are included on a whim of the programmer; AoE is 'Anywhere on Earth', 'IDLE' and 'IDLW' are International Date Line East and West
  5. ↑ Saint-Pierre and Miquelon Standard Time
  6. ↑ Western Greenland Time

UTC offset

To display the time at a particular UTC offset, specify the UTC time offset as the time zone:

{{time|UTC-07:00}}
2026-09-27T08:05 UTC−07:00 [segarkan]

'UTC', a sign character, two hour digits, a colon, and two minute digits are required. Accepted sign characters are: '+', '-' (hyphen), '±', and '−' (minus).

Military/nautical time zones

To display the time at a particular military or nautical time zone,[1] use the time zone's alpha designation:

{{time|M}}
2026-09-28T03:05 M [segarkan]

Some military and nautical time zone designators are extended with an asterisk (*), a dagger (†), or double dagger (‡). When writing this template for designators that are extended with a dagger or double dagger, use '+' and '++' respectively:

{{time|M++}}
2026-09-28T03:50 M‡ [segarkan]
{{time|M+}}
2026-09-28T05:05 M† [segarkan]

Daylight saving time

Daylight saving time (DST) calculations are automatic for those time zones where it is observed. There are locales that do not observe DST within time zones where it is generally observed. To render the correct time for a non-observant locale, set |dst=no:

{{time|MST|dst=no}}
08:05, September 27, 2026 MST [segarkan] – time in Arizona
{{time|MST}}
09:05, September 27, 2026 MDT [segarkan] – but, time on the Navajo Nation in Arizona

The opposite case is not supported. For places like Thule Air Base in Greenland, which observes US DST rules while WGT observes EU DST rules, a time zone properties table will be needed in Module:Time. See §Adding a new time zone.

Error messages

{{time}} can produce several error messages. These are:

{{time}} – both of |df-cust-a= and |df-cust-p required – when defining a custom format for am (or pm) time, you must also define a custom format for pm (or am) time
{{time}} – error calculating dst timestamps – indicates an internal error because one or more of the following time zone properties is malformed: UTC offset, DST begin or end definition. To resolve this error make sure that the time zone's properties are correct.
{{time}} – incomplete definition for ... – indicates an internal error because one or more of the following time zone properties is missing: DST begin or end definition, DST event time, time zone article. To resolve this error supply the missing properties.
{{time}} – invalid date format <format> – value assigned to |df= is not one of the defined format strings; ss §Parameters
{{time}} – invalid use of ± - the symbol ± is being used when the minute and hour offsets aren't 00:00
{{time}} – malformed or incomplete _TEST_TIME_ – value assigned to this parameter must either have the format: YYYY-MM-DDThh:mm:ss where all except 'T' are digits, or YYYYMMDDhhmmss
{{time}} – unknown timezone – the time zone positional parameter is not one of the supported time zone abbreviations. To resolve this error check the parameter's spelling or add the time zone's properties to the module. See §Adding a new time zone.

Adding a new time zone

{{time}} uses Module:Time/data. In that module, is a table of tables, the data structure that specifies the properties of the individual time zones. A blank time zone properties table has this form:

[''] = {
	abbr = '',			
	dst_abbr = '',
	utc_offset = '',
	df = '',
	dst_begins = '',
	dst_ends = '',
	dst_time = '',
	dst_e_time = '',
	article = ''
},

To add a new time zone to Module:Time/data, add the appropriate information inside the single quotes. If a property does not apply, leave the quotes empty. The rules for each property are:

[''] – (required) the abbreviation of a time zone's standard time; must be lower case; this is the value that will be used in the template's time zone parameter
abbr = '' – (required) the abbreviation of a time zone's standard time as it will be rendered by the template
dst_abbr = '' – the abbreviation of a time zone's daylight saving or summer time as it will be rendered by the template
utc_offset = '' – (required) the offset in hours and minutes from UTC±00:00; has the form: utc_offset = '<sign>hh:mm' where <sign> may be + (optional) or - (required for time zones west of the 0 meridian)
df = '' – one of three keywords dmy, mdy, or iso used to specify date format typically used in the time zone; can be overridden with |df= template parameter
dst_begins = '' – a four word sentence in the form <ordinal> <day name> <in|of> <month name> where:
<ordinal> – any of the words 'first', '1st', 'second', '2nd', ... 'fifth', '5th', or 'last'
<day name> – any of the day names 'Sunday', 'Monday', 'Tuesday', etc.; capitalization is not important but otherwise must be spelled correctly; abbreviations not supported
<in|of> – either of the words 'in' or 'of'
<month name> – any of the month names 'January', 'February', 'March', etc.; capitalization is not important but otherwise must be spelled correctly; abbreviations not supported
dst_ends = '' – (required if dst_begins is specified) same as dst_begins
dst_time = '' – (required if dst_begins is specified) the time that daylight saving time begins; usually local time; when DST begins at a specified time UTC (European Summer Time for example) use: dst_time = 'hh:mm UTC'; four digits and the colon are required
dst_e_time = '' – the time that daylight saving time ends if different from the time it begins; usually local daylight saving time ; when DST ends at a specified time UTC use: dst_e_time = 'hh:mm UTC'; four digits and the colon are required
article = '' – (required) the title of a Wikipedia article that is appropriate to the timezone; do not include wikimarkup

The table-of-tables is organized east (plus UTC offsets) then west (minus UTC offset), by offset hours, and then alphabetically by time zone positional parameter name.

Adding a new alias

You may also want to add an alias of a timezone:

[''] = {tz = ''},

To add a new time zone to Module:Time/data, add the appropriate information inside the single quotes.

[''] – (required) the abbreviation of a time zone's alias. This must be lower case.
tz = '' – (required) the abbreviation of the time zone that's already in the code. This must be lower case

The table-of-tables is organized east (plus UTC offsets) then west (minus UTC offset), and by if it's a DST offset or if it's not.

See also

Templat:Date and time templates

References

  1. ↑ "World Time Zone Map". HM Nautical Almanac Office. Februari 2016.{{cite web}}: Pemeliharaan CS1: Tanggal diterjemahkan otomatis (link)

TemplateData

Ini adalah TemplateData untuk templat ini yang digunakan oleh TemplateWizard, VisualEditor dan alat-alat lainnya. Lihat laporan penggunaan parameter bulanan untuk Template:Waktu.

TemplateData untuk Waktu

Tidak ada keterangan.

Parameter templat

ParameterKeteranganJenisStatustime zone1

The time zone for the time formatting

Contoh
EST
Katadisarankandate format2 df

The format to render the date and time

Contoh
dmy12
Tak dikenaldisarankanDaylight savings timedst

tidak ada keterangan

Contoh
yes
KataopsionalISO 639 language codelang

displays time/date in language specified by ISO 639 language

Kataopsionaldateonlydateonly

If 'yes', suppresses display of the time and only shows the date

Contoh
yes
Kataopsionaltimeonlytimeonly

If 'yes', suppresses display of the date and only shows the time

Contoh
yes
KataopsionalHide time zone?hide-tz

If 'yes', suppresses time zone abbreviation

Contoh
yes
KataopsionalDon't link time zone?unlink-tz

If 'yes', renders the timezone without linking to its article.

Contoh
yes
Kataopsional
Dokumentasi di atas ditransklusikan dari Templat:Waktu/doc. (sunting | riwayat)
Penyunting dapat melakukan uji coba pada halaman bak pasir (buat | cermin) dan kasus uji (buat) templat ini.
Mohon tambahkan kategori pada subhalaman /doc. Subhalaman templat ini.
Konten disalin dari Wikipedia Bahasa Indonesia (lisensi CC BY-SA) Lihat versi asli di Wikipedia

Rekomendasi Pilihan