Time.is

Gratis, widget penunjuk waktu untuk situs web anda

Ingin penunjuk waktu terkini di situs web anda? Atau tanggal hari ini, waktu matahari terbit dan tenggelam atau lamanya hari? Silakan pilih dari opsi di bawah dan salin kodenya! Gratis!

Opsi

Lokasi
New York City, Amerika Serikat
Untuk lokasi lain, silakan gunakan kotak pencarian di pojok kanan atas.
Apa yang ditampilkan




Format waktu



Format tanggal




 
Hari:
daynameKamis
dnameKam
daynum01-31
dnum1-31
day_in_yhari 1-366
Minggu:
weekminggu 31
Bulan:
monthnameAgustus
monthnum01-12
mnum1-12
Tahun:
year2017
yy17
Warna dan ukuran
px
Akan terlihat seperti
Waktu di New York City:
Hasil akhir dapat saja berbeda, bergantung pada style sheets di situs web anda.
Anda dapat mendekorasi widget dengan menggunakan CSS.

Ini kode untuk widget penunjuk waktu di situs web anda:

Syarat penggunaan:

Penggunaan lanjutan

There are two widget scripts: A simplified version, t.js, which displays only time, and the main widget script, id.js, which can display time, date, sunrise time, sunset time and day length. The main widget script is available in several languages. For other languages, replace id in the script name with the code for the desired language. (For instance pl.js for Polish, or tr.js for Turkish.)

Parameter untuk fungsi init:

ParameterKata kunci yang sahNilai standar
templateTIME, DATE, SUNTIME
time_formathours, minutes, seconds, 12hours, AMPMhours:minutes:seconds
date_formatdayname, dname, daynum, dnum, day_in_y, week, monthname, monthnum, mnum, yy, yearyear-monthnum-daynum
sun_formatsrhour, srminute, sr12hour, srAMPM, sshour, ssminute, ss12hour, ssAMPM, dlhours, dlminutessrhour:srminute-sshour:ssminute
coordsLatitude dan longitude lokasi. Dibutuhkan untuk menampilkan waktu matahari dan lamanya hari.
idUntuk mengidentifikasi lokasi dan zona waktu di sisi server. Diperlukan jika nama lokasi menggunakan huruf non-ascii, dan bila anda mengganti id elemen HTML.
callbackThe name of a function that will be called every second, with rendered template as parameter. (Optional)

Parameter names and keywords are case sensitive. You can use HTML and other content in the template, time_format, date_format and sun_format parameters.

Penunjuk waktu majemuk dapat dibuat seperti ini:

UTC time: <span id="UTC_za00"></span><br/>
New York sunrise time: <span id="New_York_z161"></span><br/>
Tokyo sunrise time: <span id="Tokyo_z444"></span><br/>
Find the <a href="https://time.is/" id="time_is_link" rel="nofollow">current time for any location or time zone on Time.is!</a>
<script src="//widget.time.is/id.js"></script>
<script>
time_is_widget.init({
	UTC_za00 : {},
	New_York_z161 : {
		template: "SUN",
		sun_format: "srhour:srminute",
		coords: "40.71427,-74.00597"
		},
	Tokyo_z444 : {
		coords: "59.33258,18.06490"
		}
	});
</script>

Hasil:

UTC time:
New York sunrise time:
Tokyo sunrise time:
Find the current time for any location or time zone on Time.is!

The values of the time_format, date_format, sun_format and template parameters are inherited, so you don't need to repeat them if the value is the same as for the previously defined widget.

 
 
08:29:01
Kamis, 3 Agustus 2017, minggu 31
Matahari ↑ 05:56 ↓ 20:09 (14j 13m) Informasi lebih lanjut