Time.is

Widget famantaran'ora azo ovaovaina, sy azo ampiasaina maimaim-poana ao amin'ny tranok'alanao

Widget intro text

Options

Toerana
New York, Etazonia
Widget_other_locs
What to display











 
Andro:
daynameAlatsinainy
dnameAlat
daynum01-31
dnum1-31
day_in_yandro 1-366
Herinandro:
weekherinandro 46
Volana:
monthnameNovambra
monthnum01-12
mnum1-12
Taona:
year2019
yy19
Loko sy habe
px
What it will look like
Current local time in New York:
The final result may be different
You can style

This is the code

Terms of use

Advanced usage

There are two widget scripts: A simplified version, t.js, which displays only time, and the main widget script, mg.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 mg in the script name with the code for the desired language.

Parameters for the init function:

ParameterValid keywordsDefault value
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
coordscoords param info text
idid param info text
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 add html and other content to the template, time_format, date_format and sun_format parameters.

Multiple clocks

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/mg.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>

Vokatra:

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.

 
 
22:36:44
Alatsinainy, Novambra 11, 2019, herinandro 46
Masoandro ↑ 06:38 ↓ 16:42 (10ora 4mn) Fanazavana fanampiny