Know 2022 easter date using macOS Terminal


In order to know the date when easter falls for the year 2022 using Terminal command, you can make use of ncal command.

You can use three options:

  1. ncal 2022 -eJ: Display Julian Calendar, if combined with the -e option, display date of Easter according to the Julian Calendar.
  2. ncal 2022 -e: Display date of Easter (for western churches).
  3. ncal 2022 -o: Display date of Orthodox Easter (Greek and Russian Orthodox Churches).
Example:
code2care@mac ~ % ncal -e 2022    
April 17 2022
code2care@mac ~ % ncal -Je 2022
April 17 2022
code2care@mac ~ % ncal -o 2022 
April 24 2022

code2care@mac ~ % ncal april 2022


    April 2022        
Mo     4 11 18 25   
Tu     5 12 19 26   
We     6 13 20 27   
Th     7 14 21 28   
Fr  1  8 15 22 29   
Sa  2  9 16 23 30   
Su  3 10 17 24 
2022 Easter dates using macOS Terminal Command



Recent Posts:




Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.