Unit tests

This page tests some of the functions and algorithms the site relies on. In most cases, you should see only tiny differences between the reference values and the values calculated by airmass.org. The ratio column is highlighted in green for quantities that are accurate to better than one part in a million, yellow for better than one part in a thousand and orange for worse than one part in a thousand. For the purposes of testing, the results of getLunarSigmas() shown here use all the coefficients listed in Meeus, while in the actual observability calculations, smaller periodic terms are dropped. The accuracy in practice is about 1 per cent.

airmass.org version number: 2779-3788144 (2025-10-23 12:01:26 +0100), run on php 8.1.29

Functions

Solar event times

Results from airmass.org are compared to results from PHP date_sun_info() for four locations (London, Auckland, Los Angeles and Tromsø) on today's date (2025-11-07), and 2021-01-01.

Today

2021-01-01

Browser compatibility

This table lists the major javascript functionality that this site relies on. These features should all be available in recent versions of widely-used browsers. If any are shown as not available, you may find that the site does not work as expected for you.

FeatureAvailable?

Time check

Times displayed on airmass.org are based on your system time as determined by your browser. Here you can compare your system time to the system time of the airmass.org server. The two are unlikely to be identical but the difference should be much smaller than a second. If your system clock is incorrect, then the results displayed will also be incorrect.

ServerUnix timestamp
airmass.org
your browser