How we get our data
Last updated
Many people use klockan.info to plan meetings, trips and school breaks. This page explains where each piece of information comes from and how it is checked.
How the time is synced
When the page opens it asks our server for the exact time three times and uses the fastest reply, since it has the least delay. Half the round-trip time is subtracted. The result is compared with your device clock, and the page shows how many seconds your clock is ahead or behind and how precise the measurement is.
Time zones and daylight saving time
Local time in cities and countries is calculated with the international time zone database (IANA tz), the same one used by operating systems and browsers. It holds each country's daylight saving rules. In Sweden and the rest of the EU clocks go forward on the last Sunday in March and back on the last Sunday in October.
Sunrise, sunset and the moon
Sun and moon times are calculated astronomically from the place's latitude and longitude, using the same method many other sun services are based on (SunCalc). No outside service is called. The times assume a clear horizon at sea level, so hills, buildings and refraction can make the sun appear a minute or so earlier or later where you are. The moon phase is calculated from the moon's orbital period.
Weather
Weather data comes from MET Norway (Norwegian Meteorological Institute, met.no) and is licensed under CC BY 4.0. Only the city's coordinates are sent to the service, no data about you. The forecast is shown as MET Norway provides it, without changes.
Solar eclipses
Global eclipse data, such as the time of greatest eclipse, Saros series and magnitude, comes from NASA/GSFC and Fred Espenak's calculations. Local times for Swedish cities come from timeanddate.com. All times are shown in Swedish time.
Calendar, weeks and name days
Swedish public holidays are calculated under the Swedish Public Holidays Act, and the date of Easter is worked out for each year. Week numbers follow ISO 8601, used in Sweden: weeks start on Monday and week 1 is the week with the year's first Thursday. Swedish name days follow the Swedish Academy's name list in use since 2001. Holidays in other countries come from the open Nager.Date database.
How school holidays are collected
Every municipality has its own page with school term dates for compulsory schools, and that page is our source. The pages are checked automatically about every nine days until all breaks and terms for the year are known. For each date we store the exact line of text from the municipality's page, and a date is only published if that line can be found on the page. The source link is shown on every municipality page. For some municipalities, data compiled by Skolporten is used for now, and Skolporten is then shown as the source.
How school holidays are checked
Before a date is published we check that it sits under the right term and year on the municipality's page, that the break does not start on a weekend, that its length is reasonable and that the same line of text has not already been used for another year. Summer break is only shown once the municipality has published both the last day of the spring term and the first day of the autumn term. Failed checks are logged and followed up by hand. The data covers municipal compulsory schools. Independent schools and study days set by each school are not included.
What does "worked out" mean?
Sometimes a municipality does not list a break with its own dates. We then work it out from what the municipality does say: if it only says "week 44", the break is Monday to Friday that week. Christmas break becomes the days between the last day of the autumn term and the first day of the spring term, and summer break the days between the last day of the spring term and the first day of the autumn term. Term dates can be worked out from the breaks in the same way when the municipality does not list them. Worked-out dates are marked on the municipality page, so you can see which ones appear word for word on the municipality's site.
Corrections
If you find a mistake, please let us know. Use the contact form and we will check the information against the source and correct it.