Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Looks neat.

Just wanted to add that on Linux/Unix (including MacOS), typing "cal" into the terminal also gives you a calendar. And there are arguments you can pass in to make it display a specific month or year.



sort by: page size:

Maybe not what the article is exactly talking about, but `cal` will give you a calendar in terminal. `cal -3` will give you each surrounding month, and `cal 2022` will give you the full year

I never liked the calendar from apple if I quickly wanted to look something up.

After looking at the OP website I was already thinking this is what I want. However after learning from you that I could also type "cal" in the terminal, mind blown.

Thank you to both of you!


Never knew about the "cal" command. I especially like that you can quickly look up a previous or future month/year. >> cal 3 1973 quickly shows a calendar of March 1973

Oh cool! I happened to build something similar a while back, because I was frustrated with the way that the Unix `cal` program laid out all the months in a 3 x 4 grid instead of in a continuous format:

https://github.com/jez/calz

So for example to get the same year-long calendar view as the Compact Calendar would have, I can type

    calz 2020
calz has a couple other features too which make it nicer to use than `cal`, but those are beside the point.

Although I frequently use cal, the article mentioned cal -3 which will be useful near the end of each month. Previously I always displayed the calendar for the whole year or next month instead.

Going through the core utils manual [1], I found a couple other useful looking commands I didn't know about. Previously I used awk in bash scripts primarily for printf, but apparently it's part of coreutils too. The timeout command also looks useful.

1. https://www.gnu.org/software/coreutils/manual/coreutils.html


Thank you for building it! This is super useful. I have always been frustrated with not having access to a clean calendar, given that I use mac os (for personal stuff) and windows (for work). Apple built-in calendar app and Outlook calendar for Windows are too clunky to use. cal -y is convenient if you have a terminal window open, which I often don't have . Most of the times when I need to do something with the dates I am on my browser and what you have built comes in handy.

This reminds me, if you're near a *nix termial, go and type:

    cal 9 1752
(dont worry `cal` just shows you a calendar).

You can also use this to troll developers that are doing anything that has a calendar.


I have never used cal or Greg, but it reminds me of the J programming language's calendar function:

calendar 2020 //for the full year in one row

3 4 $ calendar 2020 //full year in 4 row/3 column layout

You can do all sorts of ranges and views too.

Granted it doesn't show the missing days in September 1752 like one poster (petemc_21) replied in this thread, but I keep the J term open on my desktop for all sorts of calculator/programming goodies. Nothing geekier than an ASCII calendar at your fingertips in a full programming terminal!


Last utility I wrote draws a calendar in the terminal, and highlights the current date and also the date of the next full moon. The full moon calculation is not accurate but good enough for me. I run this daily.

https://uguu.org/src_aoba_pl.html

I did that because `cal(1)` broke for some reason, and I felt like making some ASCII art.


There is a calendar integrated into Thunderbird [1][2] Or if you just wanted to see days/weeks/months in a table there is the cal command in Linux. cal or cal -3 or cal -y

[1] - https://www.thunderbird.net/en-US/calendar/

[2] - https://support.mozilla.org/en-US/products/thunderbird/calen...


gcal highlighting the current date and '.' are nice features for me.

    $ brew info gcal
    gcal: stable 4 (bottled)
    Program for calculating and printing calendars
    https://www.gnu.org/software/gcal/
    /usr/local/Cellar/gcal/4 (81 files, 2.8M) *
      Poured from bottle on 2016-01-13 at 17:03:09
    From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gcal.rb
    ==> Dependencies
    Build: xz

                                       2016


            April                      May                       June
      Su Mo Tu We Th Fr Sa      Su Mo Tu We Th Fr Sa      Su Mo Tu We Th Fr Sa
                      1  2       1  2  3  4  5  6  7                1  2  3  4
       3  4  5  6  7  8  9       8  9 10<11>12 13 14       5  6  7  8  9 10 11
      10 11 12 13 14 15 16      15 16 17 18 19 20 21      12 13 14 15 16 17 18
      17 18 19 20 21 22 23      22 23 24 25 26 27 28      19 20 21 22 23 24 25
      24 25 26 27 28 29 30      29 30 31                  26 27 28 29 30

It looks really nice.

Note that macOS already has this kind of -- just add the month-view calendar widget and it'll appear alongside the other widgets (click the datetime in the menubar to show widgets).

But it only shows the current month -- no arrows for next month (since widgets aren't interactive). But click it and it'll bring up the full Calendar app with monthly arrow navigation.


The site loads quickly. It's fast with few ads.

Maybe the date command can do things like calculate the number of business days between two dates, accounting for U.S. holidays, and add or subtract work days excluding U.S. holidays -- I don't know. But I know it would take more effort than I'm willing to do to figure that out and test it. And I suspect it would involve a few switches and be subject to easy error.

For pulling up the calendar, it's literally a bookmark that brings up a browser tab with the year's calendar, showing U.S. national holidays. Can the cal command show holidays at all? It's unclear.

I think it's a bit sad to discount the value of a clear, usable, and fast GUI over a command-line interface for certain day-to-day tasks. Both tools have their uses.


The reflection off the screen reads "Calendar", "June 7", "21", and the Xcode and Terminal.app logos. Don't read too much into it - those are just the usual "parameters" of the event.

This looks very interesting. As the original author of khal (another terminal calendar) [1] I love some more competition in this space.

[1] https://github.com/pimutils/khal


OS X Calendar can do exactly what you want. Just go to month view and then scroll.

You might like gcal better as it can show holidays too.

https://unix.stackexchange.com/questions/164555/how-to-empha...


ItsyCal (macOS). So simple, and so useful.

The best part is being able to replace the standard menu bar date with my custom date, including time zone.


Indeed. This is what I used to use before I gave in and built this. What I was missing most of all, was marks. Be able to pull up a calendar when sharing my screen with my team to collaborate on dates while marking them for some bearings. Sure, I could double-click on a date in `cal`'s output, which was what I used to do, but I can mark only a single date with that.
next

Legal | privacy