Today's article shows you that you have a calendar in your terminal.

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
6,169
Reaction score
5,539
Credits
49,738
It's not a fancy article, but it is informative for those who don't already know this. So, why not turn it into an article? It's not like there are many people asking about it, so they'll learn something new.


Feedback is pretty awesome.
 


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,204
Reaction score
6,115
Credits
24,183
David, just a correction on the -j option

This option does
not switch from the Gregorian to the Julian calendar system, that
is controlled by the --reform option.

The -j option simply displays the numbers of the days of the year.

Cheers

Wiz
 
OP
K

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
6,169
Reaction score
5,539
Credits
49,738
Crap... It's a capital J.

-J Display Julian Calendar, if combined with the -o option, display
date of Orthodox Easter according to the Julian Calendar.

Oops... Good catch and thanks! I'll get it sorted.

And sorted... Thanks! These bits of feedback make the articles so much better. On other sites, they're left as comments on the site. I'm not actually sure which I prefer. Might as well leave 'em here. That way, future visitors will think I'm pretty much perfect!
 

craigevil

Well-Known Member
Joined
Feb 24, 2021
Messages
361
Reaction score
362
Credits
2,494
calcurse is much more useful. Although I am not sure if it does all the nifty years thing.
Description: text-based calendar and todo manager
CalCurse is a calendar and todo list for the console which allows
you to keep track of your appointments and everyday tasks. CalCurse
has a nice textmode interface with configurable color schemes, configurable
layout and Vi-like keybindings.
 
OP
K

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
6,169
Reaction score
5,539
Credits
49,738
Nice. I'll have to check it when I get home. Of course, you can always leave it as a comment on the site, should you be so inclined.
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,204
Reaction score
6,115
Credits
24,183
cal apparently does not have the Easter function.

ncal -e provides

Code:
[email protected]:~$ cal
   February 2022     
Su Mo Tu We Th Fr Sa 
       1  2  3  4  5 
 6  7  8  9 10 11 12 
13 14 15 16 17 18 19 
20 21 22 23 24 25 26 
27 28                 
                      
[email protected]:~$ ncal
    February 2022     
Su     6 13 20 27   
Mo     7 14 21 28   
Tu  1  8 15 22     
We  2  9 16 23     
Th  3 10 17 24     
Fr  4 11 18 25     
Sa  5 12 19 26     
[email protected]:~$ ncal -e
17/04/22

The documentation between the two commands is somewhat confusing and needs to be addressed by the authors.

Cheers

Wiz
 
OP
K

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
6,169
Reaction score
5,539
Credits
49,738
cal apparently does not have the Easter function.

Yeah, I mentioned that you really had to use ncal to do it. I assume ncal is part of cal because they both make use of the same man page. In the man page description it has, on one line, both cal and ncal. Please don't ask my why... 'Cause I don't understand.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online

No members online now.

Top