Changes rules for generating Thanksgiving holiday.

Thanksgiving is the 4th week of November, not the last Thursday
in November.

Some Novembers have 5 Thursdays, e.g. 2006
This commit is contained in:
Eddie Hebert
2013-02-09 23:42:31 -05:00
parent 699a47fe3d
commit 3e050dff9c
2 changed files with 50 additions and 2 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ def get_non_trading_days(start, end):
thanksgiving = rrule.rrule(
rrule.MONTHLY,
bymonth=11,
byweekday=(rrule.TH(-1)),
byweekday=(rrule.TH(4)),
cache=True,
dtstart=start,
until=end