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.
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.
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:
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.
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.
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.
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
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.
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.
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.
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.
reply