Sunday, December 25, 2011

Winter is coming

In honor of Rosh Chodesh Tevet.  (You'll see why!)

Every Hebrew calendar geek knows the "ATBaSh" parlor trick, where if you know the day of the week of (almost) any Jewish holiday, you can quickly figure out the day of the week of (almost) any other holiday that year.  As we have blogged before, this works only for the period from Adar through Cheshvan.  Fortunately, that period includes all of the major holidays, and a few minor ones too.  But it doesn't cover the minor holidays that fall during the winter, and that's what this post will seek to do.

***

The trick dates back at least to the Tur (14th century) and it works like this:  Take the first six days of Pesach in a given year (note that the period from Adar to Cheshvan spans two Hebrew years, so we're looking at a given Gregorian year), and write the Hebrew alphabet backwards, starting from the end.  You'll find that the corresponding holidays fall on the same day of the week as that day of Pesach.

1) תשעה באב = ת  Tish'ah B'Av is always exactly 16 weeks after the first day of Pesach.  (Also, 17 Tammuz is 3 weeks before 9 Av, and therefore the same day of the week.  When they fall on Shabbat, as they will in 2012, the actual observance is delayed to Sunday.)
2) שבועות = ש  Shavuot, by definition, is 7 weeks after the second day of Pesach.
3) ראש השנה = ר  Rosh Hashanah.  (Sukkot and Shemini Atzeret are also on the same day of the week.)
4) קריאת התורה = ק  In communities that observe two days of Shemini Atzeret, this is "Simchat Torah" (on the second day of Shemini Atzeret).
5) צום כפור = צ  Yom Kippur (9 days after Rosh Hashanah, and therefore 2 days of the week later).  (Also, Tzom Gedaliah is 1 week before Yom Kippur and thus the same day of the week, except when it is delayed due to Shabbat.)
6) פורים = פ  Purim (in unwalled cities).

The original version just covered the first six days of Pesach, but the 7th day was added in the 20th century:

7) עצמאות = ע  Israeli Independence Day (at least before the Knesset starts mucking with the date).

It works so perfectly that one wonders whether this was the real reason that Ben-Gurion decided to declare independence a day before the British Mandate expired.

Other Israeli civil observances tied to the Hebrew calendar can also be located with this framework.  Yom Hashoah is always the same day of the week as Purim (again, before the Knesset reschedules it); to remember this, note that some have suggested that Yom Hashoah is the Purim story without Esther.  Yom Yerushalayim is exactly one week before Shavuot.

Finally, Lag Ba'Omer is also the same day of the week as Purim:  not hard to remember.

Rosh Hashanah can fall on only four days of the week (Monday, Tuesday, Thursday, Shabbat), and therefore all of these other days are also restricted to four days.  To figure out which four days, just use the relationships above.  For example, Shavuot is on the day (of the week) before Rosh Hashanah, so it can only fall on Sunday, Monday, Wednesday, or Friday.

***

During the winter months, it's not so simple.  This is because there are three variables that can cause the calendar to be different from one year to the next:
1) Cheshvan can have 29 or 30 days.
2) Kislev can have 29 or 30 days.
3) There can be one or two months of Adar.  (In leap years, Adar I is the "extra" month, and always has 30 days.)

In order to connect winter holidays to non-winter holidays, you need to know at least one of those three pieces of information.  To keep it as simple as possible, the mnemonics below will be for a year that goes from Tevet to Kislev.  (As a convenient and coincidental memory aid, this corresponds roughly to the Gregorian year, but not precisely:  10 Tevet can fall in either December or January.  Thus some Gregorian years have two Fasts of Tevet, and some have none.)  This way, you only have to know one additional variable: the number of days in Cheshvan (to expand forward into Kislev), or whether it's a leap year (to expand backward into Tevet and Sh'vat).

Let's start with days that depend only on whether it's a leap year, since that's something you're more likely to know off the top of your head.

Tu BiShvat:  In a leap year, it's on the same day of the week as Rosh Hashanah.  (Remember, this is the following Rosh Hashanah.)  In a non-leap year, it's on the same day as Yom Kippur.  Mnemonic:  New Year of the Trees.

Since Tu BiShvat is the same day as Rosh Hashanah or Yom Kippur, there are five possible days of the week when it can fall: Monday, Tuesday, Wednesday, Thursday, or Shabbat.  (Neither Rosh Hashanah nor Yom Kippur can fall on Friday or Sunday.)

10 Tevet:  It's always one day (of the week) after Tu BiShvat. Mnemonic: Deuteronomy 20:19 says that when you besiege a city, you shouldn't cut down the trees.  Trees before siege.

Thus, 10 Tevet can also fall on five days of the week:  Sunday, Tuesday, Wednesday, Thursday, or Friday.  As a guest post here discussed, this makes it the only fast day that can fall on a Friday.  As discussed there also, it can never fall on Shabbat, which makes the question of whether we would still fast purely hypothetical.

***

Finally, Chanukah.  It's complicated because whether Cheshvan has 29 or 30 days in a given year isn't something we're likely to know without looking up.  So here's a quick way to find that from information you're more likely to have handy (which just happens to also be the way it's determined in the calendar algorithm itself).

You need to know the day of the week of Rosh Hashanah this year and next year, and whether it's a leap year.  From the number of days in between, you can figure out how many days are in the year.  Non-leap years have 353, 354, or 355 days, and leap years have 383, 384, or 385 days, and it helps to remember that 350 and 385 are both divisible by 7.  If the year has 353, 354, 383, or 384 days, then Cheshvan has 29 days; if the year has 355 or 385 days, then Cheshvan has 30 days.

Once you know that, then you can find which day of the week Chanukah begins on.  If Cheshvan has 30 days, then Chanukah begins on the same day of the week as Rosh Hashanah (exactly 12 weeks later).  If Cheshvan has 29 days, then Chanukah begins one day earlier, on the same day of the week as Shavuot.  MnemonicApplesauce or sour cream?

Since Chanukah can begin on the same day as Rosh Hashanah or a day earlier, there are six days of the week when it can begin:  all of them except Tuesday, because years beginning on Tuesday can only have 354 or 384 days, so in those years, Cheshvan always has 29 days (so Chanukah begins on Monday).

***

To see this in action, let's use this year (5772) as an example.

Starting with Chanukah:  it's in 2011, so it goes with that set of holidays (Pesach on Tuesday, Rosh Hashanah on Thursday, etc.).  Did Cheshvan have 29 or 30 days?  Well, I know that Rosh Hashanah this year was on Thursday, and next year it's on a Monday, and this isn't a leap year.  From Thursday to Monday is a 4-day gap, so this year must have 350+4 = 354 days.  That means Cheshvan had 29 days.  So Chanukah began on the same day of the week as Shavuot (one day before Rosh Hashanah):  Wednesday.

For the minor holidays in Tevet and Sh'vat, we look instead at the upcoming holidays in 2012 (when Rosh Hashanah is on a Monday).  It's not a leap year, so Tu BiShvat is on the same day as Yom Kippur: Wednesday.  10 Tevet is one day later, on Thursday.

Chodesh tov!

Thursday, December 22, 2011

The other question everyone is asking

Q: Is Parshat Mikeitz ever not read during Chanukah?

A: Yes, in 353- or 383-day years beginning on Shabbat.  The Shabbat start means that Bereishit isn't read until a full week after Shemini Atzeret (so the whole Torah reading cycle gets off to a relatively late start), and the deficient year (Cheshvan has 29 days) means that Chanukah comes sooner than otherwise.  In those years, the Shabbat during Chanukah (on day 2) is Vayeishev, and Mikeitz is the day after Chanukah ends.  (In 355- or 385-day years beginning on Shabbat, Cheshvan has 30 days, so Chanukah starts one day later, and contains two Shabbatot: Vayeishev and Mikeitz.)

Overall, this occurs in about 10% of years, but during the current decade, there's a drought.  The last time the actual haftarah for Mikeitz (the famous story of Solomon offering to cut the baby in half) was read was December 2000, and the next time will be December 2020.

Wednesday, December 21, 2011

Darkness falls across the land

Happy solstice festivals!  This year (as every year, but more so for some reason), a number of people have been asking this question: Why isn’t the earliest sunset on the date of the solstice? Indeed, the solstice this year is at 05:30 UT (12:30 am EST) on December 22, while the earliest sundown in many places (as many noticed, particularly Sabbath observers) was around two weeks earlier. (This depends on location, but here in the DC area, the earliest sundown was at 4:45 pm on December 7, while sundown on December 22 will be 4:49 pm.)

The answer to this question depends on what you mean by “why”, and I’ll try to answer both interpretations of the question.

(I apologize to readers in the southern hemisphere that this post is written from a borealocentric perspective.  To apply it to the southern half of the globe, either change "December" to "June" (and switch around some of the specifics), or change "shortest" to "longest" and swap "earliest" with "latest".)

1) Phenomenological:  I thought the solstice was the shortest day! If the earliest sundown was on December 7, why don’t we call that the solstice?

The winter solstice is indeed the day with the shortest amount of daylight (i.e. the shortest time from sunrise to sunset).  But sunrise and sunset times don't move symmetrically.  During the fall, sunset times are getting earlier and sunrise times are getting later.  But after we hit the earliest sunset (sometime last fortnight), sunset starts getting later again (albeit slowly*), while sunrise continues getting later (somewhat faster).  Thus, the day is still getting shorter.  This continues until the solstice.  After the solstice, sunrise is still getting later but has slowed down, while sundown is also getting later and has sped up, so the day is getting longer.  Finally, sometime in early January, we get to the latest sunrise, after which sunrise starts getting earlier.

This is all easy to overlook since many of us, for a variety of reasons, are more attuned to sundown times than to sunrise times.

[* For those familiar with calculus, this makes sense if sunset time is a smooth function:  on the date of the earliest sunset time, its derivative is zero; therefore, near that date, its derivative must be small.]

For a concrete example:  Here in DC, sunrise on December 7 was 7:12 am (so the time from sunrise to sunset was 9 hours 33 minutes), and on December 22 it will be 7:23 am (so sunrise to sunset will be 9 hours 26 minutes, which is shorter!).  The latest sunrise in DC won't be until January 6, when it is 7:26 am.  (On that day, sunset will be as late as 5:00 pm, so sunrise to sunset will be 9 hours 34 minutes, longer than on the solstice.)

(Ok, technically the latest sunrise was actually 7:39 am the first weekend in November just before we "fell back", because this country is addicted to Daylight Saving Time and stays on it much longer than it should, but that's just a clock trick that's neither here nor there.)

2) Mechanistic: Ok, but why don’t sunrise and sunset move symmetrically?

Yeah, why?  It doesn't seem like they should be independent, because the same mechanism is responsible for the changes in both sunrise and sunset times, right?  The earth's tilt means that you get different amounts of light and darkness each day depending on where you're located in the annual orbit (the standard explanation for the cause of seasons).  And there's no reason this should affect sunrise and sunset differently (after all, we would expect the earth-sun system to look basically the same if we ran time backwards).

The answer is that, separate from the seasonal variation in day length, there is also variation in the time of solar noon (the time halfway between sunrise and sunset, when the sun is at its highest point in the sky).  This variation is known as the equation of time, and is the same everywhere on the planet (unlike day length, which depends on latitude).  That Wikipedia link explains it in more detail than you ever wanted, but here are the basics:

The equation of time is the result of two factors: a) the eccentricity of the earth's orbit, b) the earth's tilt.  So if the earth's axis were not tilted and the earth's orbit were perfectly circular, then there would be no variation in solar noon, and the earliest sunset (and latest sunrise) would indeed be on the date of the solstice.

a) Eccentricity: The earth's orbit is an ellipse, not a circle.  It's close to a circle (the eccentricity is only 0.0167), so the earth-sun distance doesn't vary substantially over the course of the year; contrary to a popular belief, this is not the cause of seasons.  However, the eccentricity has another effect:  As described by Kepler's second law (and explained by conservation of angular momentum), Earth's speed as it moves around the sun is not uniform:  it moves faster when it is closer to the sun, and it is closest to the sun in January.
Not every solar day is 24 hours: that's just the average over the entire year.  The solar day (time from one noon to the next) is equal to the sidereal day (the time it takes for Earth to rotate once on its axis, relative to faraway points such as other stars:  about 23 hours 56 minutes), plus the extra amount of time it has to rotate so that the sun is at its highest point again, to account for the fact that the earth moved a little bit during that day.  The earth moves through about 1/365 of its orbit every day, so this extra rotation should be about 1/365 of a circle, and should take about 1/365 of a day:  about 4 minutes.

But at times of the year when the earth is moving faster (e.g. close to January), it moves through more than 1/365 of its orbit each day, so this extra rotation is more than 4 minutes, and the time from one solar noon to the next is more than 24 hours.  Solar noon gets later each day, which is exactly what we see above, with the sunrise and sunset data.  At times of the year when the earth is farther from the sun and moving slower (e.g. close to July), it's the opposite.

b) Tilt:  Around the two solstices, part a is basically the whole story.  But around the equinoxes, Earth's rotation is at an angle (up to 23.5°) relative to its motion around the sun.  This means that the Earth's motion around the sun in a single day corresponds to less rotation around the axis, so it has the same effect as the earth moving slower: solar noon gets earlier each day.

Putting the two parts together, the combined effect is greater around the December solstice, since the two parts act in the same direction: both the solstice and the nearby perihelion cause noon to drift later.  Around the June solstice, the effect still exists, but is less pronounced, because the solstice and the nearby aphelion act in opposite directions.  (In DC in 2012, the summer solstice is on June 20, the latest sundown is on June 27, and the earliest sunrise is on June 13 or 14.  So there's still a difference, but it's not as big.)

***

Advanced section:

In thinking about this question, it occurs to me that sunrise time and sunset time, as time-dependent variables, can (like any other pair of functions) be decomposed into a symmetric and an antisymmetric part (or, if you like, a differential and a common-mode signal). The antisymmetric (differential) component is the length of the day (call it L), and the symmetric (common-mode) component is the time of local noon (call it N), relative to the average solar noon in that location. (There’s also a “DC offset” (call it D) representing the time of average solar noon, which is by definition constant throughout the year and depends only on longitude – essentially where you are within your time zone – but that doesn't tell us anything interesting.) I think this is a more natural choice of basis to understand what’s going on.

Sunrise time can be expressed as D + NL/2, and sunset time can be expressed as D + N + L/2. (This analysis requires the approximation that these variables change slowly enough that fluctuations on the scale of less than a day are negligible, so that on a given day, N and L have the same value at sunrise as they do at sunset.)

Then we can look at each variable separately to see what affects it.

L has two components:  L0 is constant, equal to 12 hours plus a few extra minutes to account for the refraction of light in the atmosphere (so in a vacuum, it would be exactly 12 hours).  L1 is a periodic function with a period of one year.  The amplitude of this function depends on latitude, while the period and phase are the same everywhere.  At the equator, the amplitude is zero (so the day length is 12 hours and change for the entire year), and the amplitude increases as you go up in latitude.  In the southern hemisphere, the amplitude is negative (or you could call it positive and call the northern hemisphere negative; you'd just have to shift the phase by 180°).  Inside the polar circles, it starts to break down, since there are parts of the year when the sun never sets/rises, so L isn't well-defined.  The minimum and maximum of L are on the solstices.

N is the equation of time (but with the reverse sign because of the convention of how the equation of time is defined).  As shown in the Wikipedia article (and its graphs), it has two Fourier components: N1 (for eccentricity) with a period of a year, and N2 (for tilt) with a period of half a year.  This function is the same everywhere on earth.  The two zeroes of N1 are at perihelion and aphelion, so the maximum and minimum are about halfway in between.  The four zeros of N2 are at the solstices and equinoxes, so the maxima and minima are about halfway in between those.

Putting this together, it becomes clear why the date of the earliest/latest sunrise/sunset depends on latitude:  you're combining functions with two different periods, and the extrema of the combined function will depend on the amplitudes of the components (set the derivative to zero and solve!), and the amplitude of L1 varies with latitude.