diff --git a/python/tests/scheduling/test_calendars.py b/python/tests/scheduling/test_calendars.py index 1c4ba5c8..39ca74e8 100644 --- a/python/tests/scheduling/test_calendars.py +++ b/python/tests/scheduling/test_calendars.py @@ -673,3 +673,9 @@ def test_get_imm_depr(): def test_fed_nyc_good_friday(): assert not get_calendar("nyc").is_bus_day(dt(2024, 3, 29)) assert get_calendar("fed").is_bus_day(dt(2024, 3, 29)) + + +def test_fed_sunday_to_monday(): + fed = get_calendar("fed") + assert fed.is_bus_day(dt(2021, 12, 24)) + assert not fed.is_bus_day(dt(2022, 12, 26)) diff --git a/rust/scheduling/calendars/named/fed.rs b/rust/scheduling/calendars/named/fed.rs index 3db7172c..a50886f9 100644 --- a/rust/scheduling/calendars/named/fed.rs +++ b/rust/scheduling/calendars/named/fed.rs @@ -21,7 +21,7 @@ pub const HOLIDAYS: &[&str] = &[ "1970-01-01 00:00:00", "1970-02-16 00:00:00", "1970-05-25 00:00:00", - "1970-07-03 00:00:00", + "1970-07-04 00:00:00", "1970-09-07 00:00:00", "1970-10-12 00:00:00", "1970-11-11 00:00:00", @@ -35,7 +35,7 @@ pub const HOLIDAYS: &[&str] = &[ "1971-10-11 00:00:00", "1971-11-11 00:00:00", "1971-11-25 00:00:00", - "1971-12-24 00:00:00", + "1971-12-25 00:00:00", "1972-01-01 00:00:00", "1972-02-21 00:00:00", "1972-05-29 00:00:00", @@ -80,7 +80,7 @@ pub const HOLIDAYS: &[&str] = &[ "1976-10-11 00:00:00", "1976-11-11 00:00:00", "1976-11-25 00:00:00", - "1976-12-24 00:00:00", + "1976-12-25 00:00:00", "1977-01-01 00:00:00", "1977-02-21 00:00:00", "1977-05-30 00:00:00", @@ -120,7 +120,7 @@ pub const HOLIDAYS: &[&str] = &[ "1981-01-01 00:00:00", "1981-02-16 00:00:00", "1981-05-25 00:00:00", - "1981-07-03 00:00:00", + "1981-07-04 00:00:00", "1981-09-07 00:00:00", "1981-10-12 00:00:00", "1981-11-11 00:00:00", @@ -134,7 +134,7 @@ pub const HOLIDAYS: &[&str] = &[ "1982-10-11 00:00:00", "1982-11-11 00:00:00", "1982-11-25 00:00:00", - "1982-12-24 00:00:00", + "1982-12-25 00:00:00", "1983-01-01 00:00:00", "1983-02-21 00:00:00", "1983-05-30 00:00:00", @@ -176,7 +176,7 @@ pub const HOLIDAYS: &[&str] = &[ "1987-01-19 00:00:00", "1987-02-16 00:00:00", "1987-05-25 00:00:00", - "1987-07-03 00:00:00", + "1987-07-04 00:00:00", "1987-09-07 00:00:00", "1987-10-12 00:00:00", "1987-11-11 00:00:00", @@ -226,7 +226,7 @@ pub const HOLIDAYS: &[&str] = &[ "1992-01-20 00:00:00", "1992-02-17 00:00:00", "1992-05-25 00:00:00", - "1992-07-03 00:00:00", + "1992-07-04 00:00:00", "1992-09-07 00:00:00", "1992-10-12 00:00:00", "1992-11-11 00:00:00", @@ -241,7 +241,7 @@ pub const HOLIDAYS: &[&str] = &[ "1993-10-11 00:00:00", "1993-11-11 00:00:00", "1993-11-25 00:00:00", - "1993-12-24 00:00:00", + "1993-12-25 00:00:00", "1994-01-01 00:00:00", "1994-01-17 00:00:00", "1994-02-21 00:00:00", @@ -286,7 +286,7 @@ pub const HOLIDAYS: &[&str] = &[ "1998-01-19 00:00:00", "1998-02-16 00:00:00", "1998-05-25 00:00:00", - "1998-07-03 00:00:00", + "1998-07-04 00:00:00", "1998-09-07 00:00:00", "1998-10-12 00:00:00", "1998-11-11 00:00:00", @@ -301,7 +301,7 @@ pub const HOLIDAYS: &[&str] = &[ "1999-10-11 00:00:00", "1999-11-11 00:00:00", "1999-11-25 00:00:00", - "1999-12-24 00:00:00", + "1999-12-25 00:00:00", "2000-01-01 00:00:00", "2000-01-17 00:00:00", "2000-02-21 00:00:00", @@ -351,7 +351,7 @@ pub const HOLIDAYS: &[&str] = &[ "2004-10-11 00:00:00", "2004-11-11 00:00:00", "2004-11-25 00:00:00", - "2004-12-24 00:00:00", + "2004-12-25 00:00:00", "2005-01-01 00:00:00", "2005-01-17 00:00:00", "2005-02-21 00:00:00", @@ -396,7 +396,7 @@ pub const HOLIDAYS: &[&str] = &[ "2009-01-19 00:00:00", "2009-02-16 00:00:00", "2009-05-25 00:00:00", - "2009-07-03 00:00:00", + "2009-07-04 00:00:00", "2009-09-07 00:00:00", "2009-10-12 00:00:00", "2009-11-11 00:00:00", @@ -411,7 +411,7 @@ pub const HOLIDAYS: &[&str] = &[ "2010-10-11 00:00:00", "2010-11-11 00:00:00", "2010-11-25 00:00:00", - "2010-12-24 00:00:00", + "2010-12-25 00:00:00", "2011-01-01 00:00:00", "2011-01-17 00:00:00", "2011-02-21 00:00:00", @@ -456,7 +456,7 @@ pub const HOLIDAYS: &[&str] = &[ "2015-01-19 00:00:00", "2015-02-16 00:00:00", "2015-05-25 00:00:00", - "2015-07-03 00:00:00", + "2015-07-04 00:00:00", "2015-09-07 00:00:00", "2015-10-12 00:00:00", "2015-11-11 00:00:00", @@ -507,7 +507,7 @@ pub const HOLIDAYS: &[&str] = &[ "2020-01-20 00:00:00", "2020-02-17 00:00:00", "2020-05-25 00:00:00", - "2020-07-03 00:00:00", + "2020-07-04 00:00:00", "2020-09-07 00:00:00", "2020-10-12 00:00:00", "2020-11-11 00:00:00", @@ -522,7 +522,7 @@ pub const HOLIDAYS: &[&str] = &[ "2021-10-11 00:00:00", "2021-11-11 00:00:00", "2021-11-25 00:00:00", - "2021-12-24 00:00:00", + "2021-12-25 00:00:00", "2022-01-01 00:00:00", "2022-01-17 00:00:00", "2022-02-21 00:00:00", @@ -572,7 +572,7 @@ pub const HOLIDAYS: &[&str] = &[ "2026-02-16 00:00:00", "2026-05-25 00:00:00", "2026-06-19 00:00:00", - "2026-07-03 00:00:00", + "2026-07-04 00:00:00", "2026-09-07 00:00:00", "2026-10-12 00:00:00", "2026-11-11 00:00:00", @@ -588,7 +588,7 @@ pub const HOLIDAYS: &[&str] = &[ "2027-10-11 00:00:00", "2027-11-11 00:00:00", "2027-11-25 00:00:00", - "2027-12-24 00:00:00", + "2027-12-25 00:00:00", "2028-01-01 00:00:00", "2028-01-17 00:00:00", "2028-02-21 00:00:00", @@ -643,7 +643,7 @@ pub const HOLIDAYS: &[&str] = &[ "2032-10-11 00:00:00", "2032-11-11 00:00:00", "2032-11-25 00:00:00", - "2032-12-24 00:00:00", + "2032-12-25 00:00:00", "2033-01-01 00:00:00", "2033-01-17 00:00:00", "2033-02-21 00:00:00", @@ -693,7 +693,7 @@ pub const HOLIDAYS: &[&str] = &[ "2037-02-16 00:00:00", "2037-05-25 00:00:00", "2037-06-19 00:00:00", - "2037-07-03 00:00:00", + "2037-07-04 00:00:00", "2037-09-07 00:00:00", "2037-10-12 00:00:00", "2037-11-11 00:00:00", @@ -709,7 +709,7 @@ pub const HOLIDAYS: &[&str] = &[ "2038-10-11 00:00:00", "2038-11-11 00:00:00", "2038-11-25 00:00:00", - "2038-12-24 00:00:00", + "2038-12-25 00:00:00", "2039-01-01 00:00:00", "2039-01-17 00:00:00", "2039-02-21 00:00:00", @@ -759,7 +759,7 @@ pub const HOLIDAYS: &[&str] = &[ "2043-02-16 00:00:00", "2043-05-25 00:00:00", "2043-06-19 00:00:00", - "2043-07-03 00:00:00", + "2043-07-04 00:00:00", "2043-09-07 00:00:00", "2043-10-12 00:00:00", "2043-11-11 00:00:00", @@ -814,7 +814,7 @@ pub const HOLIDAYS: &[&str] = &[ "2048-02-17 00:00:00", "2048-05-25 00:00:00", "2048-06-19 00:00:00", - "2048-07-03 00:00:00", + "2048-07-04 00:00:00", "2048-09-07 00:00:00", "2048-10-12 00:00:00", "2048-11-11 00:00:00", @@ -830,7 +830,7 @@ pub const HOLIDAYS: &[&str] = &[ "2049-10-11 00:00:00", "2049-11-11 00:00:00", "2049-11-25 00:00:00", - "2049-12-24 00:00:00", + "2049-12-25 00:00:00", "2050-01-01 00:00:00", "2050-01-17 00:00:00", "2050-02-21 00:00:00", @@ -880,7 +880,7 @@ pub const HOLIDAYS: &[&str] = &[ "2054-02-16 00:00:00", "2054-05-25 00:00:00", "2054-06-19 00:00:00", - "2054-07-03 00:00:00", + "2054-07-04 00:00:00", "2054-09-07 00:00:00", "2054-10-12 00:00:00", "2054-11-11 00:00:00", @@ -896,7 +896,7 @@ pub const HOLIDAYS: &[&str] = &[ "2055-10-11 00:00:00", "2055-11-11 00:00:00", "2055-11-25 00:00:00", - "2055-12-24 00:00:00", + "2055-12-25 00:00:00", "2056-01-01 00:00:00", "2056-01-17 00:00:00", "2056-02-21 00:00:00", @@ -951,7 +951,7 @@ pub const HOLIDAYS: &[&str] = &[ "2060-10-11 00:00:00", "2060-11-11 00:00:00", "2060-11-25 00:00:00", - "2060-12-24 00:00:00", + "2060-12-25 00:00:00", "2061-01-01 00:00:00", "2061-01-17 00:00:00", "2061-02-21 00:00:00", @@ -1001,7 +1001,7 @@ pub const HOLIDAYS: &[&str] = &[ "2065-02-16 00:00:00", "2065-05-25 00:00:00", "2065-06-19 00:00:00", - "2065-07-03 00:00:00", + "2065-07-04 00:00:00", "2065-09-07 00:00:00", "2065-10-12 00:00:00", "2065-11-11 00:00:00", @@ -1017,7 +1017,7 @@ pub const HOLIDAYS: &[&str] = &[ "2066-10-11 00:00:00", "2066-11-11 00:00:00", "2066-11-25 00:00:00", - "2066-12-24 00:00:00", + "2066-12-25 00:00:00", "2067-01-01 00:00:00", "2067-01-17 00:00:00", "2067-02-21 00:00:00", @@ -1067,7 +1067,7 @@ pub const HOLIDAYS: &[&str] = &[ "2071-02-16 00:00:00", "2071-05-25 00:00:00", "2071-06-19 00:00:00", - "2071-07-03 00:00:00", + "2071-07-04 00:00:00", "2071-09-07 00:00:00", "2071-10-12 00:00:00", "2071-11-11 00:00:00", @@ -1122,7 +1122,7 @@ pub const HOLIDAYS: &[&str] = &[ "2076-02-17 00:00:00", "2076-05-25 00:00:00", "2076-06-19 00:00:00", - "2076-07-03 00:00:00", + "2076-07-04 00:00:00", "2076-09-07 00:00:00", "2076-10-12 00:00:00", "2076-11-11 00:00:00", @@ -1138,7 +1138,7 @@ pub const HOLIDAYS: &[&str] = &[ "2077-10-11 00:00:00", "2077-11-11 00:00:00", "2077-11-25 00:00:00", - "2077-12-24 00:00:00", + "2077-12-25 00:00:00", "2078-01-01 00:00:00", "2078-01-17 00:00:00", "2078-02-21 00:00:00", @@ -1188,7 +1188,7 @@ pub const HOLIDAYS: &[&str] = &[ "2082-02-16 00:00:00", "2082-05-25 00:00:00", "2082-06-19 00:00:00", - "2082-07-03 00:00:00", + "2082-07-04 00:00:00", "2082-09-07 00:00:00", "2082-10-12 00:00:00", "2082-11-11 00:00:00", @@ -1204,7 +1204,7 @@ pub const HOLIDAYS: &[&str] = &[ "2083-10-11 00:00:00", "2083-11-11 00:00:00", "2083-11-25 00:00:00", - "2083-12-24 00:00:00", + "2083-12-25 00:00:00", "2084-01-01 00:00:00", "2084-01-17 00:00:00", "2084-02-21 00:00:00", @@ -1259,7 +1259,7 @@ pub const HOLIDAYS: &[&str] = &[ "2088-10-11 00:00:00", "2088-11-11 00:00:00", "2088-11-25 00:00:00", - "2088-12-24 00:00:00", + "2088-12-25 00:00:00", "2089-01-01 00:00:00", "2089-01-17 00:00:00", "2089-02-21 00:00:00", @@ -1309,7 +1309,7 @@ pub const HOLIDAYS: &[&str] = &[ "2093-02-16 00:00:00", "2093-05-25 00:00:00", "2093-06-19 00:00:00", - "2093-07-03 00:00:00", + "2093-07-04 00:00:00", "2093-09-07 00:00:00", "2093-10-12 00:00:00", "2093-11-11 00:00:00", @@ -1325,7 +1325,7 @@ pub const HOLIDAYS: &[&str] = &[ "2094-10-11 00:00:00", "2094-11-11 00:00:00", "2094-11-25 00:00:00", - "2094-12-24 00:00:00", + "2094-12-25 00:00:00", "2095-01-01 00:00:00", "2095-01-17 00:00:00", "2095-02-21 00:00:00", @@ -1375,7 +1375,7 @@ pub const HOLIDAYS: &[&str] = &[ "2099-02-16 00:00:00", "2099-05-25 00:00:00", "2099-06-19 00:00:00", - "2099-07-03 00:00:00", + "2099-07-04 00:00:00", "2099-09-07 00:00:00", "2099-10-12 00:00:00", "2099-11-11 00:00:00", @@ -1391,7 +1391,7 @@ pub const HOLIDAYS: &[&str] = &[ "2100-10-11 00:00:00", "2100-11-11 00:00:00", "2100-11-25 00:00:00", - "2100-12-24 00:00:00", + "2100-12-25 00:00:00", "2101-01-01 00:00:00", "2101-01-17 00:00:00", "2101-02-21 00:00:00", @@ -1441,7 +1441,7 @@ pub const HOLIDAYS: &[&str] = &[ "2105-02-16 00:00:00", "2105-05-25 00:00:00", "2105-06-19 00:00:00", - "2105-07-03 00:00:00", + "2105-07-04 00:00:00", "2105-09-07 00:00:00", "2105-10-12 00:00:00", "2105-11-11 00:00:00", @@ -1457,7 +1457,7 @@ pub const HOLIDAYS: &[&str] = &[ "2106-10-11 00:00:00", "2106-11-11 00:00:00", "2106-11-25 00:00:00", - "2106-12-24 00:00:00", + "2106-12-25 00:00:00", "2107-01-01 00:00:00", "2107-01-17 00:00:00", "2107-02-21 00:00:00", @@ -1507,7 +1507,7 @@ pub const HOLIDAYS: &[&str] = &[ "2111-02-16 00:00:00", "2111-05-25 00:00:00", "2111-06-19 00:00:00", - "2111-07-03 00:00:00", + "2111-07-04 00:00:00", "2111-09-07 00:00:00", "2111-10-12 00:00:00", "2111-11-11 00:00:00", @@ -1562,7 +1562,7 @@ pub const HOLIDAYS: &[&str] = &[ "2116-02-17 00:00:00", "2116-05-25 00:00:00", "2116-06-19 00:00:00", - "2116-07-03 00:00:00", + "2116-07-04 00:00:00", "2116-09-07 00:00:00", "2116-10-12 00:00:00", "2116-11-11 00:00:00", @@ -1578,7 +1578,7 @@ pub const HOLIDAYS: &[&str] = &[ "2117-10-11 00:00:00", "2117-11-11 00:00:00", "2117-11-25 00:00:00", - "2117-12-24 00:00:00", + "2117-12-25 00:00:00", "2118-01-01 00:00:00", "2118-01-17 00:00:00", "2118-02-21 00:00:00", @@ -1628,7 +1628,7 @@ pub const HOLIDAYS: &[&str] = &[ "2122-02-16 00:00:00", "2122-05-25 00:00:00", "2122-06-19 00:00:00", - "2122-07-03 00:00:00", + "2122-07-04 00:00:00", "2122-09-07 00:00:00", "2122-10-12 00:00:00", "2122-11-11 00:00:00", @@ -1644,7 +1644,7 @@ pub const HOLIDAYS: &[&str] = &[ "2123-10-11 00:00:00", "2123-11-11 00:00:00", "2123-11-25 00:00:00", - "2123-12-24 00:00:00", + "2123-12-25 00:00:00", "2124-01-01 00:00:00", "2124-01-17 00:00:00", "2124-02-21 00:00:00", @@ -1699,7 +1699,7 @@ pub const HOLIDAYS: &[&str] = &[ "2128-10-11 00:00:00", "2128-11-11 00:00:00", "2128-11-25 00:00:00", - "2128-12-24 00:00:00", + "2128-12-25 00:00:00", "2129-01-01 00:00:00", "2129-01-17 00:00:00", "2129-02-21 00:00:00", @@ -1749,7 +1749,7 @@ pub const HOLIDAYS: &[&str] = &[ "2133-02-16 00:00:00", "2133-05-25 00:00:00", "2133-06-19 00:00:00", - "2133-07-03 00:00:00", + "2133-07-04 00:00:00", "2133-09-07 00:00:00", "2133-10-12 00:00:00", "2133-11-11 00:00:00", @@ -1765,7 +1765,7 @@ pub const HOLIDAYS: &[&str] = &[ "2134-10-11 00:00:00", "2134-11-11 00:00:00", "2134-11-25 00:00:00", - "2134-12-24 00:00:00", + "2134-12-25 00:00:00", "2135-01-01 00:00:00", "2135-01-17 00:00:00", "2135-02-21 00:00:00", @@ -1815,7 +1815,7 @@ pub const HOLIDAYS: &[&str] = &[ "2139-02-16 00:00:00", "2139-05-25 00:00:00", "2139-06-19 00:00:00", - "2139-07-03 00:00:00", + "2139-07-04 00:00:00", "2139-09-07 00:00:00", "2139-10-12 00:00:00", "2139-11-11 00:00:00", @@ -1870,7 +1870,7 @@ pub const HOLIDAYS: &[&str] = &[ "2144-02-17 00:00:00", "2144-05-25 00:00:00", "2144-06-19 00:00:00", - "2144-07-03 00:00:00", + "2144-07-04 00:00:00", "2144-09-07 00:00:00", "2144-10-12 00:00:00", "2144-11-11 00:00:00", @@ -1886,7 +1886,7 @@ pub const HOLIDAYS: &[&str] = &[ "2145-10-11 00:00:00", "2145-11-11 00:00:00", "2145-11-25 00:00:00", - "2145-12-24 00:00:00", + "2145-12-25 00:00:00", "2146-01-01 00:00:00", "2146-01-17 00:00:00", "2146-02-21 00:00:00", @@ -1936,7 +1936,7 @@ pub const HOLIDAYS: &[&str] = &[ "2150-02-16 00:00:00", "2150-05-25 00:00:00", "2150-06-19 00:00:00", - "2150-07-03 00:00:00", + "2150-07-04 00:00:00", "2150-09-07 00:00:00", "2150-10-12 00:00:00", "2150-11-11 00:00:00", @@ -1952,7 +1952,7 @@ pub const HOLIDAYS: &[&str] = &[ "2151-10-11 00:00:00", "2151-11-11 00:00:00", "2151-11-25 00:00:00", - "2151-12-24 00:00:00", + "2151-12-25 00:00:00", "2152-01-01 00:00:00", "2152-01-17 00:00:00", "2152-02-21 00:00:00", @@ -2007,7 +2007,7 @@ pub const HOLIDAYS: &[&str] = &[ "2156-10-11 00:00:00", "2156-11-11 00:00:00", "2156-11-25 00:00:00", - "2156-12-24 00:00:00", + "2156-12-25 00:00:00", "2157-01-01 00:00:00", "2157-01-17 00:00:00", "2157-02-21 00:00:00", @@ -2057,7 +2057,7 @@ pub const HOLIDAYS: &[&str] = &[ "2161-02-16 00:00:00", "2161-05-25 00:00:00", "2161-06-19 00:00:00", - "2161-07-03 00:00:00", + "2161-07-04 00:00:00", "2161-09-07 00:00:00", "2161-10-12 00:00:00", "2161-11-11 00:00:00", @@ -2073,7 +2073,7 @@ pub const HOLIDAYS: &[&str] = &[ "2162-10-11 00:00:00", "2162-11-11 00:00:00", "2162-11-25 00:00:00", - "2162-12-24 00:00:00", + "2162-12-25 00:00:00", "2163-01-01 00:00:00", "2163-01-17 00:00:00", "2163-02-21 00:00:00", @@ -2123,7 +2123,7 @@ pub const HOLIDAYS: &[&str] = &[ "2167-02-16 00:00:00", "2167-05-25 00:00:00", "2167-06-19 00:00:00", - "2167-07-03 00:00:00", + "2167-07-04 00:00:00", "2167-09-07 00:00:00", "2167-10-12 00:00:00", "2167-11-11 00:00:00", @@ -2178,7 +2178,7 @@ pub const HOLIDAYS: &[&str] = &[ "2172-02-17 00:00:00", "2172-05-25 00:00:00", "2172-06-19 00:00:00", - "2172-07-03 00:00:00", + "2172-07-04 00:00:00", "2172-09-07 00:00:00", "2172-10-12 00:00:00", "2172-11-11 00:00:00", @@ -2194,7 +2194,7 @@ pub const HOLIDAYS: &[&str] = &[ "2173-10-11 00:00:00", "2173-11-11 00:00:00", "2173-11-25 00:00:00", - "2173-12-24 00:00:00", + "2173-12-25 00:00:00", "2174-01-01 00:00:00", "2174-01-17 00:00:00", "2174-02-21 00:00:00", @@ -2244,7 +2244,7 @@ pub const HOLIDAYS: &[&str] = &[ "2178-02-16 00:00:00", "2178-05-25 00:00:00", "2178-06-19 00:00:00", - "2178-07-03 00:00:00", + "2178-07-04 00:00:00", "2178-09-07 00:00:00", "2178-10-12 00:00:00", "2178-11-11 00:00:00", @@ -2260,7 +2260,7 @@ pub const HOLIDAYS: &[&str] = &[ "2179-10-11 00:00:00", "2179-11-11 00:00:00", "2179-11-25 00:00:00", - "2179-12-24 00:00:00", + "2179-12-25 00:00:00", "2180-01-01 00:00:00", "2180-01-17 00:00:00", "2180-02-21 00:00:00", @@ -2315,7 +2315,7 @@ pub const HOLIDAYS: &[&str] = &[ "2184-10-11 00:00:00", "2184-11-11 00:00:00", "2184-11-25 00:00:00", - "2184-12-24 00:00:00", + "2184-12-25 00:00:00", "2185-01-01 00:00:00", "2185-01-17 00:00:00", "2185-02-21 00:00:00", @@ -2365,7 +2365,7 @@ pub const HOLIDAYS: &[&str] = &[ "2189-02-16 00:00:00", "2189-05-25 00:00:00", "2189-06-19 00:00:00", - "2189-07-03 00:00:00", + "2189-07-04 00:00:00", "2189-09-07 00:00:00", "2189-10-12 00:00:00", "2189-11-11 00:00:00", @@ -2381,7 +2381,7 @@ pub const HOLIDAYS: &[&str] = &[ "2190-10-11 00:00:00", "2190-11-11 00:00:00", "2190-11-25 00:00:00", - "2190-12-24 00:00:00", + "2190-12-25 00:00:00", "2191-01-01 00:00:00", "2191-01-17 00:00:00", "2191-02-21 00:00:00", @@ -2431,7 +2431,7 @@ pub const HOLIDAYS: &[&str] = &[ "2195-02-16 00:00:00", "2195-05-25 00:00:00", "2195-06-19 00:00:00", - "2195-07-03 00:00:00", + "2195-07-04 00:00:00", "2195-09-07 00:00:00", "2195-10-12 00:00:00", "2195-11-11 00:00:00", diff --git a/rust/scheduling/calendars/named/fed_script.py b/rust/scheduling/calendars/named/fed_script.py index 1d62365d..8fc65f56 100644 --- a/rust/scheduling/calendars/named/fed_script.py +++ b/rust/scheduling/calendars/named/fed_script.py @@ -29,12 +29,12 @@ day=19, observance=sunday_to_monday, ), - Holiday("US Independence Day", month=7, day=4, observance=nearest_workday), + Holiday("US Independence Day", month=7, day=4, observance=sunday_to_monday), Holiday("US Labour Day", month=9, day=1, offset=DateOffset(weekday=MO(1))), Holiday("US Columbus Day", month=10, day=1, offset=DateOffset(weekday=MO(2))), Holiday("Veterans Day", month=11, day=11, observance=sunday_to_monday), Holiday("US Thanksgiving", month=11, day=1, offset=DateOffset(weekday=TH(4))), - Holiday("Christmas Day Sunday Holiday", month=12, day=25, observance=nearest_workday), + Holiday("Christmas Day Sunday Holiday", month=12, day=25, observance=sunday_to_monday), Holiday("GHW Bush Funeral", year=2018, month=12, day=5), ] diff --git a/rust/scheduling/calendars/named/mod.rs b/rust/scheduling/calendars/named/mod.rs index b2b55aa1..695187a0 100644 --- a/rust/scheduling/calendars/named/mod.rs +++ b/rust/scheduling/calendars/named/mod.rs @@ -3,10 +3,10 @@ pub mod all; pub mod bus; +pub mod fed; pub mod ldn; pub mod mum; pub mod nyc; -pub mod fed; pub mod osl; pub mod stk; pub mod syd; diff --git a/rust/scheduling/calendars/named/tyo.rs b/rust/scheduling/calendars/named/tyo.rs index d77e8e60..6da6e177 100644 --- a/rust/scheduling/calendars/named/tyo.rs +++ b/rust/scheduling/calendars/named/tyo.rs @@ -1025,7 +1025,7 @@ pub const HOLIDAYS: &[&str] = &[ "2024-07-15 00:00:00", "2024-08-12 00:00:00", "2024-09-16 00:00:00", - "2024-09-22 00:00:00", + "2024-09-23 00:00:00", "2024-10-14 00:00:00", "2024-11-04 00:00:00", "2024-11-23 00:00:00", @@ -1063,6 +1063,7 @@ pub const HOLIDAYS: &[&str] = &[ "2026-07-20 00:00:00", "2026-08-11 00:00:00", "2026-09-21 00:00:00", + "2026-09-22 00:00:00", "2026-09-23 00:00:00", "2026-10-12 00:00:00", "2026-11-03 00:00:00", diff --git a/rust/scheduling/calendars/named/tyo_script.py b/rust/scheduling/calendars/named/tyo_script.py index 200d715a..af0cf602 100644 --- a/rust/scheduling/calendars/named/tyo_script.py +++ b/rust/scheduling/calendars/named/tyo_script.py @@ -333,7 +333,7 @@ def sunday_to_monday_or_tuesday_or_wednesday(dt: datetime) -> datetime: "2021-09-23", # Manual edit "2022-09-23", "2023-09-23", - "2024-09-22", + "2024-09-23", # Manual edit "2025-09-23", # Manual edit "2026-09-23", "2027-09-23", @@ -621,6 +621,7 @@ def autumn_equinox_sun_to_mon(dt: datetime) -> datetime: Holiday("Citizens Holiday 2019", year=2019, month=4, day=30), Holiday("Citizens Holiday2 2019", year=2019, month=5, day=2), Holiday("New Emperor coronation", year=2019, month=10, day=22), + Holiday("Bridge Holiday - Silver Week", year=2026, month=9, day=22), ] CALENDAR = CustomBusinessDay( # type: ignore[call-arg]