Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Just a Calendar: Simple Calendar to look at, no login, super light (sharats.me)
98 points by sharat87 on March 30, 2022 | hide | past | favorite | 56 comments


You can go futher. Just type cal in your terminal:

  ~ % cal 
       March 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 29 30 31


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.


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.


Additional guidance is needed.

    'cal' is not recognized as an internal or external command, operable program or batch file.

    cal : The term 'cal' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

    At line:1 char:1
    + cal
    + ~~~
        + CategoryInfo          : ObjectNotFound: (cal:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException



stop using windows lol


Also "cal -y"


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!


cal 2022 - will give you the calendar for the whole year.


It would be great if you could share this via url. You don't have to store anything, just query params.

https://calendar.sharats.me?g=20220101,20220102, ....

You can save the year you're viewing as well as any highlighted dates and their color. You can fit a lot in query params or further even compress the dates.


Hey, thanks for the suggestion. I actually considered this multiple times, but I'm yet to figure out a way to not have this clash with the marked dates in localStorage, in an easy-to-understand way.

We'll get there though, soon. :)


It'd be nice if there was an option to set Monday as the first day of the week.


Hey, noted, thanks for the suggestion. I should put this out soon. :)


An extra thanks to everyone checking this out and sharing issues you've faced. The fact that you folks are vocal about the issues you faced instead of just moving on, tells me I'm not the only who needed something like this. Cheers!


thank you for the reminder that, sometimes, the tools we really need are not the complex, fancy "products", but indeed "Just a calendar". I like the simple, no-depenency solution.


I've been a fan and user of David Seah's calendar for 3 years now.

https://davidseah.com/node/compact-calendar/

I keep a pdf and screenshot version on my desktop and phone. For date ranges, I use the excel version.


Whenever I see something about calendar I'm usually tempted to do the LOTR Calendar trick;

Go to your Terminal and type

$ calendar -f /usr/share/calendar/calendar.lotr -A 365


Kinda reminds me of one of my favourite websites, https://weeknumber.com/


> Kinda reminds me of one of my favourite websites, https://weeknumber.com/

Hmm:

> Can we use your data to tailor ads for you?

> Our partners will collect data and use cookies for ad personalization and measurement.

No thanks.


Yeah, it sucks that they are trying to milk it.


Thanks! I've started using week numbers to keep track of certain weekly tasks and didn't have a good solution for the "I'm half asleep and can't recall(+forgot to write an alias for) a highly specific `cal` invocation" case.


https://vecka.nu/ is the Swedish variant, very clean. Translats to "week.now" so easy to remember.


Yes this one is excellent and very clean and language neutral as well.


This is great, I was looking for exactly this yesterday. One point of improvement, it would be great if we can drag and drop to specify ranges.


I tried to enter several date format variations in the "Go to date" prompt() pop up. None worked.


Hey, thanks for reporting. Yeah, looks like the event handler is broken. Fix coming up.


Thanks! Looks great.

I often find myself opening Outlook just to look at a calendar.

It also doesn't let me mark dates easily, like yours does.


Hey, thanks for the kind words. The problem should've been fixed by now, so please check it out again. Let me know if any particular date format doesn't work.


The date here is currently 3/30/2022 (12:56 AM), but the calendar tells me it's the 29th of March (I assume that's what the red box around the day means).


Hey, thanks for reporting this. Looks like I was using UTC time for the today-highlight (surprised I haven't noticed this all this while).

Should be fixed now.


I'm seeing Mar 29 highlighted as today and it's currently almost 7 AM EDT on Mar 30 here.

Did you switch from UTC to AoE?

"Today" should be determined by the client's settings, ideally with a configurable tz database timezone to override as well.


Hey, thanks. I haven’t figured out customising time ones just yet, but the wrong today problem should be fixed now.


I'm seeing the same thing, showing March 29. My current time is 2022-03-30 08:14:53 EDT.


Hey, thanks for sharing the time one. Helped in identifying the problem more accurately. This should be fixed now.


Oh that's interesting. Let me investigate.


Cool, you should have a cookie banner for users to consent to being tracked by Google Analytics though.


Nah, done something better. Removed it altogether.

I actually didn't realize I was still loading GA, thought I'd removed it long ago. Well, thanks for pointing it out. :)


Nice one! No worries


I work shifts.. so I build https://skiftkalender.com And https://skiftkalender.app

To get a calendar that just works for me


Very cool. Optional week numbers would be nice. We use them at work for planning things.


This is now available, along with starting weeks on Mondays. Please click on the burger button in the top toolbar and enable week numbers. :)


Cool, thanks!


"Got to date" doesn't work on Firefox 98.0.2.

Console shows the error:

Uncaught TypeError: app is undefined

    promptGoToDate https://calendar.sharats.me/app.js:303

    onclick https://calendar.sharats.me/:1


should be fixed now (just tested it and it worked)


As an aside, python has a (kind of oddly specific) has a part of the standard library called "calendar" that will render HTML calendars.

Always thought that was kind of funny, but I've seen a codebase use it once or twice.


Good idea.

Calendars look good and highlighting works. You could put highlight details in localstorage so you can keep them.

On my phone the header part is not good in portrait mode and not great in landscape.


Hey, thanks for the feedback. I don't open it on my phone as much so I might've regressed there. I'll take a look.

The marks are actually stored in localStorage already, and is working in a desktop browser. Isn't it working for you on a mobile device?


Seems to be OK now. Not sure what happened last time.



The marked dates disappear when I try to print the page (FF98.0.1, Mac). Actually when I push Cmd-P the years decrease with one every time.


Hey, yes the years decreasing is a bug, should be fixed now.

The marks disappearing is, unfortunately, just the default print setting. I think if you enable the "background graphics" option, they'll show up.

I'll figure out a better way. Perhaps, the marks could be text-color, instead of background, when printing.


Love it, simple & useful. Well done :)


I like the simplicity. No React or Angular, just vanilla javascript.


Hey, thanks. Yeah, that's what I started off with, but after two years, just looking at the code, I have _no_ idea what's going on. And I can see myself reinventing some framework in a bad way, if I am to add more features and fix stuff. So, went with my favorite combination, TypeScript and Mithril.js.


Doesn’t work on mobile.


Hey, sorry for this. It actually should be working on mobile. Can you check now, or share more details on what you are seeing or what problems you are facing please?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: