Pascal port of NOAA JavaScript ultimately derived from Jean Meeus.
These were originally incorporated in a much larger program which displayed data captured from a weather station via the Open2300 protocol.
Observation over an extended period suggests that the results are good to around ±3 minutes.
The demonstration program has its latitude and longitude set for Royston Priory.