mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-11 12:00:50 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user