Methodology & Data Sources
This page explains exactly how the numbers on WorldTimeWise are produced: what data we use, what algorithms we use, and where the limits are. We believe a time tool should be able to say how it works.
Time zones: the IANA database, via your browser
Every time zone conversion, offset, and daylight saving answer on this site comes from the IANA time zone database (often called "tzdata"). We do not keep our own copy of time zone rules and we do not hard-code UTC offsets anywhere.
The database reaches our code through the Intl API built into your browser (Intl.DateTimeFormat with a timeZone option). Your browser ships with a copy of the IANA database, updated when the browser updates. This means:
- Conversions use the rules actually in force on the date you ask about, not just today's rules. A time in 1995 gets 1995's rules.
- We never assume a zone's offset is fixed. Zones that have changed offsets historically, or that observe daylight saving, are handled by the database, not by us.
Daylight saving time
DST start and end dates shown on the site are derived from the same IANA data. We compute them by walking the calendar and watching for offset changes, rather than typing in dates by hand — so when a government changes its DST schedule and your browser picks up the new database, our pages reflect it automatically.
Two edge cases deserve a mention:
Sunrise, sunset, and the moon
Sunrise, sunset, solar noon, twilight times, and day length are calculated in your browser with the open-source suncalc library (BSD licence), which implements the standard solar-position algorithm in the Astronomical Algorithms tradition (Meeus). Inputs are latitude, longitude, and date; outputs are the sun's rise, set, and twilight instants for that location. Moon phase and illumination use suncalc's lunar model, accurate to well within a day for phase purposes.
Date math
All date arithmetic follows ISO 8601 conventions: the Gregorian calendar, Monday as the first day of the week for ISO week numbers, and unambiguous YYYY-MM-DD handling. Leap-year rules are the standard ones (divisible by 4, except centuries not divisible by 400 — so 2000 was a leap year and 2100 will not be). Day counts are computed from calendar dates, not milliseconds, so daylight saving transitions can't shift a result by a day.
What we can't promise
If a country announces a time zone change tomorrow, your browser's IANA copy won't know until it updates.
Time zones before roughly 1900, and zones with unusual histories (e.g. Samoa skipping 30 December 2011), follow the database; we surface what it says but have not hand-verified every historical record.
We don't account for leap seconds; displayed seconds are conventional clock time, not atomic time.
Sunrise/sunset ignore local terrain, buildings, and atmospheric quirks; they assume a flat horizon.
For important uses — travel, legal deadlines, medical or safety scheduling — always cross-check against an authoritative source. See our terms.