@@ -38,23 +38,22 @@ library(dplyr)
3838tibble(
3939Gregorian = gregorian_date(1990 ,2 ,20 )+ 1 : 10 ,
4040ISO = as_iso(Gregorian ),
41- Chinese = as_chinese(Gregorian ),
4241Islamic = as_islamic(Gregorian ),
4342Hebrew = as_hebrew(Gregorian )
4443)
45- # > # A tibble: 10 ×5
46- # > Gregorian ISOChinese Islamic Hebrew
47- # > <Gre> <ISO> <Chi> < Hij> <Heb>
48- # > 1 1990-Feb-21 1990-08-0378-07-01-26 1410-Raj-25 5750-Shevat-26
49- # > 2 1990-Feb-22 1990-08-0478-07-01-27 1410-Raj-26 5750-Shevat-27
50- # > 3 1990-Feb-23 1990-08-0578-07-01-28 1410-Raj-27 5750-Shevat-28
51- # > 4 1990-Feb-24 1990-08-0678-07-01-29 1410-Raj-28 5750-Shevat-29
52- # > 5 1990-Feb-25 1990-08-0778-07-02-01 1410-Raj-29 5750-Shevat-30
53- # > 6 1990-Feb-26 1990-09-0178-07-02-02 1410-Raj-30 5750-Adar-01
54- # > 7 1990-Feb-27 1990-09-0278-07-02-03 1410-Sha-01 5750-Adar-02
55- # > 8 1990-Feb-28 1990-09-0378-07-02-04 1410-Sha-02 5750-Adar-03
56- # > 9 1990-Mar-01 1990-09-0478-07-02-05 1410-Sha-03 5750-Adar-04
57- # > 10 1990-Mar-02 1990-09-0578-07-02-06 1410-Sha-04 5750-Adar-05
44+ # > # A tibble: 10 ×4
45+ # > Gregorian ISO Islamic Hebrew
46+ # > <Gre> <ISO> <Hij> <Heb>
47+ # > 1 1990-Feb-21 1990-08-03 1410-Raj-25 5750-Shevat-26
48+ # > 2 1990-Feb-22 1990-08-04 1410-Raj-26 5750-Shevat-27
49+ # > 3 1990-Feb-23 1990-08-05 1410-Raj-27 5750-Shevat-28
50+ # > 4 1990-Feb-24 1990-08-06 1410-Raj-28 5750-Shevat-29
51+ # > 5 1990-Feb-25 1990-08-07 1410-Raj-29 5750-Shevat-30
52+ # > 6 1990-Feb-26 1990-09-01 1410-Raj-30 5750-Adar-01
53+ # > 7 1990-Feb-27 1990-09-02 1410-Sha-01 5750-Adar-02
54+ # > 8 1990-Feb-28 1990-09-03 1410-Sha-02 5750-Adar-03
55+ # > 9 1990-Mar-01 1990-09-04 1410-Sha-03 5750-Adar-04
56+ # > 10 1990-Mar-02 1990-09-05 1410-Sha-04 5750-Adar-05
5857```
5958
6059Some religious and cultural holidays
@@ -63,51 +62,55 @@ Some religious and cultural holidays
6362tibble(
6463year = 2025 : 2028 ,
6564# Christian holidays
66- ` Easter` = easter(year ),
65+ Easter = easter(year ),
6766`Orthodox Easter` = orthodox_easter(year ),
68- ` Christmas` = christmas(year ),
67+ Christmas = christmas(year ),
6968`Orthodox Christmas` = orthodox_christmas(year ),
7069# Jewish holidays
7170`Rosh Hashanah` = rosh_hashanah(year ),
72- ` Passover` = passover(year ),
71+ Passover = passover(year ),
7372`Yom Kippur` = yom_kippur(year ),
74- ` Sukkot` = sukkot(year ),
75- ` Hanukkah` = hanukkah(year ),
73+ Sukkot = sukkot(year ),
74+ Hanukkah = hanukkah(year ),
7675# Islamic holidays
77- ` Ramadan` = ramadan(year ),
76+ Ramadan = ramadan(year ),
7877`Eid al-Fitr` = eid_al_fitr(year ),
7978`Eid al-Adha` = eid_al_adha(year ),
80- # Baháʼí holidays
81- `Birth of the Bab` = birth_of_the_bab(year ),
82- `Naw Ruz` = naw_ruz(year ),
83- `Feast of Ridvan` = feast_of_ridvan(year ),
8479# Chinese Holidays
8580`Chinese New Year` = chinese_new_year(year ),
8681`Dragon Festival` = dragon_festival(year ),
87- `Qing Ming` = qing_ming(year )
82+ `Qing Ming` = qing_ming(year ),
83+ # Hindu Holidays
84+ `Hindu Lunar New Year` = hindu_lunar_new_year(year ),
85+ `Hindu Solar New Year` = mesha_sankranti(year ),
86+ Diwali = diwali(year ),
87+ Rama = rama(year ),
88+ Shiva = shiva(year )
8889)| >
8990 pivot_longer(- year )| >
9091 pivot_wider(names_from = year ,values_from = value )| >
9192 arrange(`2025` )
92- # > # A tibble: 18 × 5
93- # > name `2025` `2026` `2027` `2028`
94- # > <chr> <Gre> <Gre> <Gre> <Gre>
95- # > 1 Orthodox Christmas 2025-Jan-07 2026-Jan-07 2027-Jan-07 2028-Jan-07
96- # > 2 Chinese New Year 2025-Jan-29 2026-Feb-17 2027-Feb-06 2028-Jan-26
97- # > 3 Ramadan 2025-Mar-01 2026-Feb-18 2027-Feb-08 2028-Jan-28
98- # > 4 Naw Ruz 2025-Mar-20 2026-Mar-20 2027-Mar-21 2028-Mar-20
99- # > 5 Eid al-Fitr 2025-Mar-31 2026-Mar-20 2027-Mar-10 2028-Feb-27
100- # > 6 Qing Ming 2025-Apr-04 2026-Apr-05 2027-Apr-05 2028-Apr-04
101- # > 7 Passover 2025-Apr-13 2026-Apr-02 2027-Apr-22 2028-Apr-11
102- # > 8 Easter 2025-Apr-20 2026-Apr-05 2027-Mar-28 2028-Apr-16
103- # > 9 Orthodox Easter 2025-Apr-20 2026-Apr-12 2027-May-02 2028-Apr-16
104- # > 10 Feast of Ridvan 2025-Apr-20 2026-Apr-20 2027-Apr-21 2028-Apr-20
105- # > 11 Dragon Festival 2025-May-31 2026-Jun-19 2027-Jun-09 2028-May-28
106- # > 12 Eid al-Adha 2025-Jun-07 2026-May-27 2027-May-17 2028-May-05
107- # > 13 Rosh Hashanah 2025-Sep-23 2026-Sep-12 2027-Oct-02 2028-Sep-21
108- # > 14 Yom Kippur 2025-Oct-02 2026-Sep-21 2027-Oct-11 2028-Sep-30
109- # > 15 Sukkot 2025-Oct-07 2026-Sep-26 2027-Oct-16 2028-Oct-05
110- # > 16 Birth of the Bab 2025-Oct-22 2026-Nov-10 2027-Oct-30 2028-Oct-19
111- # > 17 Hanukkah 2025-Dec-15 2026-Dec-05 2027-Dec-25 2028-Dec-13
112- # > 18 Christmas 2025-Dec-25 2026-Dec-25 2027-Dec-25 2028-Dec-25
93+ # > # A tibble: 20 × 5
94+ # > name `2025` `2026` `2027` `2028`
95+ # > <chr> <Gre> <Gre> <Gre> <Gre>
96+ # > 1 Orthodox Christmas 2025-Jan-07 2026-Jan-07 2027-Jan-07 2028-Jan-07
97+ # > 2 Chinese New Year 2025-Jan-29 2026-Feb-17 2027-Feb-06 2028-Jan-26
98+ # > 3 Shiva 2025-Feb-27 2026-Feb-16 2027-Mar-07 2028-Feb-24
99+ # > 4 Ramadan 2025-Mar-01 2026-Feb-18 2027-Feb-08 2028-Jan-28
100+ # > 5 Hindu Lunar New Year 2025-Mar-30 2026-Mar-19 2027-Apr-07 2028-Mar-27
101+ # > 6 Eid al-Fitr 2025-Mar-31 2026-Mar-20 2027-Mar-10 2028-Feb-27
102+ # > 7 Qing Ming 2025-Apr-04 2026-Apr-05 2027-Apr-05 2028-Apr-04
103+ # > 8 Rama 2025-Apr-06 2026-Mar-27 2027-Apr-15 2028-Apr-04
104+ # > 9 Passover 2025-Apr-13 2026-Apr-02 2027-Apr-22 2028-Apr-11
105+ # > 10 Hindu Solar New Year 2025-Apr-14 2026-Apr-14 2027-Apr-14 2028-Apr-13
106+ # > 11 Easter 2025-Apr-20 2026-Apr-05 2027-Mar-28 2028-Apr-16
107+ # > 12 Orthodox Easter 2025-Apr-20 2026-Apr-12 2027-May-02 2028-Apr-16
108+ # > 13 Dragon Festival 2025-May-31 2026-Jun-19 2027-Jun-09 2028-May-28
109+ # > 14 Eid al-Adha 2025-Jun-07 2026-May-27 2027-May-17 2028-May-05
110+ # > 15 Rosh Hashanah 2025-Sep-23 2026-Sep-12 2027-Oct-02 2028-Sep-21
111+ # > 16 Yom Kippur 2025-Oct-02 2026-Sep-21 2027-Oct-11 2028-Sep-30
112+ # > 17 Sukkot 2025-Oct-07 2026-Sep-26 2027-Oct-16 2028-Oct-05
113+ # > 18 Diwali 2025-Oct-22 2026-Nov-10 2027-Oct-30 2028-Nov-17
114+ # > 19 Hanukkah 2025-Dec-15 2026-Dec-05 2027-Dec-25 2028-Dec-13
115+ # > 20 Christmas 2025-Dec-25 2026-Dec-25 2027-Dec-25 2028-Dec-25
113116```