Just a gentle reminder to go have a nice day at the park this July 4th ;)
(We won't have another Saturday July 4th for 11 years)
rld@Intrepid:~$ for x in {1970..2099}; do cal july $x |grep -q "^ *1 2 3 4 *$" && echo $x; done
1970
1981
1987
1992
1998
2009
2015
2020
2026
2037
2043
2048
2054
2065
2071
2076
2082
2093
2099
rld@Intrepid:~$
cc: @amin
P.S., interestingly, it follows a repeating pattern of 11, 6, 5, 6:
rld@Intrepid:~$ y=0; for x in 1970 1981 1987 1992 1998 2009 2015 2020 2026 2037 2043 2048 2054 2065 2071 2076 2082 2093 2099; do ((y!=0)) && echo $((x-y)); y=$x; done
11
6
5
6
11
6
5
6
11
6
5
6
11
6
5
6
11
6
rld@Intrepid:~$
It seems that's the pattern for all repeating calendars. I tried the same with January, and it had the same pattern.
🍵 

