Computed sky · The gist
The day number that every ephemeris agrees on
Before any astronomy program looks up a planet, it throws your calendar date away and replaces it with one running count of days, and you can do that swap by hand in both directions.
This is the short way in. The essay has the working, the sources and the sky.
Calendars are bad at subtraction. Months have different lengths. Most years have 365 days and some have 366. Countries switched from the old calendar to the new one in different decades, and several struck out ten or eleven dates when they did it.
So astronomers stopped counting in months and years. They number the days instead, straight through from a fixed starting point. That number is the Julian Day, and it sits in the left-hand column of every table of computed sky positions.
Two rules come with it. The count changes at noon, not midnight, because an astronomer working through a night wanted the whole night inside one number. So midnight lands on a half: 2455034.5. And day zero is noon on 1 January 4713 BCE, far enough back that every date anyone writes down gets a positive number. The name confuses people: the Julian calendar is a calendar, with a leap year every four years. The Julian Day is not a calendar at all. It is a count.
The essay takes one real date, 22 July 2009, the morning the moon's shadow crossed India, and works it both ways.
Forward: count January and February as part of the previous year, so the leap day sits at the end. Count 365 days for each finished year, then add one day for every four years, take one away for every hundred, put one back for every four hundred. Add the days from 1 March to your date. Add one fixed number, which the essay pins down using a value the US Naval Observatory publishes. The answer, 2,455,034.5, is what NASA's own ephemeris service prints for that midnight.
Backward is long division. Subtract the fixed number, then divide by 146,097 (the days in 400 years), by 36,524 (a century), by 1,461 (four years), by 365 (a year), and count the months off. The date comes back out.
Two things the count cannot guess: which calendar the date was written in, and which of the two time scales the clock was keeping.
Words decoded
- ephemeris
- a table of computed positions for the sun, moon and planets, usually one line per day
- Julian Day
- a plain running count of days, used by astronomers so that dates can be subtracted like numbers
- epoch
- the fixed starting point a count is measured from
- Julian calendar and Gregorian calendar
- the older and newer sets of leap-year rules; most of Europe changed over in 1582, other places much later
- Universal Time
- clock time at Greenwich, the time scale the day count runs on
- Modified Julian Date
- the Julian Day minus 2,400,000.5, used by people who would rather their day started at midnight
- tithi (तिथि)
- the lunar day used in Indian almanacs, which is not a day of the ordinary kind and does not start at midnight or at noon
- ahargana (अहर्गण)
- the Indian tradition's own running count of days, from its own starting point
Twice a week
Essays like this one, Tuesdays and Saturdays. One email per essay, and the archive is never mailed out. Subscriptions open shortly; the RSS feed is live now.
Nothing else arrives, ever.