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
Advertisements
Try Out Code2care Dev Tools:

Advertisements



Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Advertisements


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, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR - https://donate.unhcr.org/in/en-in/ukraine-emergency