[kanchilug] Re: [Tip] Difference between "cal" and "calendar" command

  • From: JP <prakasamj@xxxxxxxxx>
  • To: kanchilug@xxxxxxxxxxxxx
  • Date: Thu, 13 Jan 2011 16:40:16 +0530

View the calendar for September 1752

$ cal 9 1752


September 1752

 S  M Tu  W Th  F  S
       1  2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30*
*


Not a typical calendar by any means! Where have gone the days between
September 2 and 14? Answer: September 1752 is the month Britain switched
from the Julian calendar to the Gregorian calendar.

For more info view man page for cal


Regards,
J. Prakasam


On Thu, Jan 13, 2011 at 2:33 PM, Tha.Suresh <jemenisuresh@xxxxxxxxx> wrote:

> Many of us know abt "cal" command. It displays the current month calendar.
>
> But 'calendar' command displays the history of events for current day
> and next day. ;)
>
> Ex for "cal" :
>
> student@student-cygnus ~ $ cal
> January 2011
> 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 29
> 30 31
>
> Ex for "calendar " :
>
> student@student-cygnus ~ $ calendar
> Jan 13     Horatio Alger born, 1834
> Jan 13     Sophie Tucker born, 1884
> Jan 13     Wilhelm Wien born, 1864, Nobel prize for blackbody radiation
> laws
> Jan 13     National Liberation Day in Togo
> .
> .
> .
>
> Jan 14 Albert Schweitzer born, 1875
> Jan 14 Julian Calendar New Year's Day
> .
> .
>
> For more info see man page of calendar
>
> --
> Regards,
> Tha.Suresh
>
> Cooool Linux Tips & Tricks,
> http://gnutips.wordpress.com
>
> My experiences with Linux are here,
> http://thasulinux.wordpress.com
>
>

Other related posts: