• Re: Is there a calendar program for RasPiOS ?

    From Lawrence D'Oliveiro@ldo@nz.invalid to comp.sys.raspberry-pi on Tue Mar 11 21:15:19 2025
    From Newsgroup: comp.sys.raspberry-pi

    On Tue, 11 Mar 2025 17:05:12 +0000, Pancho wrote:

    ncal -b 9 1752

    September 1752
    Mo Tu We Th Fr Sa Su
    1 2 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30

    I wondered why 1752, then I discovered it’s defaulting to the British
    Empire.

    root@ubuntu-24-04:/ # ncal -sIT 10 1582
    October 1582
    Mo 1 18 25
    Tu 2 19 26
    We 3 20 27
    Th 4 21 28
    Fr 15 22 29
    Sa 16 23 30
    Su 17 24 31

    But if you want cal-style format

    root@ubuntu-24-04:/ # ncal -bsIT 10 1582
    October 1582
    Mo Tu We Th Fr Sa Su
    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

    Sigh ...
    --- Synchronet 3.20c-Linux NewsLink 1.2
  • From Pancho@Pancho.Jones@protonmail.com to comp.sys.raspberry-pi on Tue Mar 11 22:47:43 2025
    From Newsgroup: comp.sys.raspberry-pi

    On 3/11/25 21:15, Lawrence D'Oliveiro wrote:
    On Tue, 11 Mar 2025 17:05:12 +0000, Pancho wrote:

    ncal -b 9 1752

    September 1752
    Mo Tu We Th Fr Sa Su
    1 2 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30

    I wondered why 1752, then I discovered it’s defaulting to the British Empire.

    root@ubuntu-24-04:/ # ncal -sIT 10 1582
    October 1582
    Mo 1 18 25
    Tu 2 19 26
    We 3 20 27
    Th 4 21 28
    Fr 15 22 29
    Sa 16 23 30
    Su 17 24 31

    But if you want cal-style format

    root@ubuntu-24-04:/ # ncal -bsIT 10 1582
    October 1582
    Mo Tu We Th Fr Sa Su
    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

    Sigh ...

    Damn, you've destroyed one of my youthful idols.

    Bloody foreigners... :-)


    --- Synchronet 3.20c-Linux NewsLink 1.2
  • From Kees Nuyt@kees@nospam.demon.invalid to comp.sys.raspberry-pi on Wed Mar 12 00:27:40 2025
    From Newsgroup: comp.sys.raspberry-pi

    On 10-03-2025 20:11, bp@www.zefox.net wrote:
    Is there something equivalent to the cal program found in FreeBSD
    for RasPiOS? I tried calendar, but it doesn't seem to display a
    table of dates by day of the week, which is all I need. No need
    for appointment reminders or anything like that, just the equivalent
    of an old-fashioned paper calendar.

    I'm running a GUI, so a fancy calendar is ok if it can be identified
    using apt search.


    Thanks for reading,

    bob prohaska


    $ cal --help
    cal: invalid option -- '-'
    Usage: cal [general options] [-jy] [[month] year]
    cal [general options] [-j] [-m month] [year]
    ncal -C [general options] [-jy] [[month] year]
    ncal -C [general options] [-j] [-m month] [year]
    ncal [general options] [-bhJjpwySM] [-H yyyy-mm-dd] [-s
    country_code] [[month] year]
    ncal [general options] [-bhJeoSM] [year]
    General options: [-31] [-A months] [-B months] [-d yyyy-mm]

    $ cal 5 2025
    Mei 2025
    zo ma di wo do vr za
    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

    $ cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="10"
    VERSION="10 (buster)"
    VERSION_CODENAME=buster
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

    Not GUI, but very functional.
    --
    Regards,
    Kees
    --- Synchronet 3.20c-Linux NewsLink 1.2
  • From Daniel James@daniel@me.invalid to comp.sys.raspberry-pi on Sun Mar 16 11:33:25 2025
    From Newsgroup: comp.sys.raspberry-pi

    On 10/03/2025 23:37, Lawrence D'Oliveiro wrote:
    That’s why the separate “cal” program is included in the same package.

    Actually, cal is just a symlink to ncal. The program looks at the
    commandline to see whether it has been invoked as cal or as ncal and
    adapts its behaviour accordingly.

    $ ls -al /usr/bin/cal
    lrwxrwxrwx 1 root root 4 Feb 20 2023 /usr/bin/cal -> ncal
    --
    Cheers,
    Daniel.
    --- Synchronet 3.20c-Linux NewsLink 1.2