7 ms·
Show HN: Just a Calendar: Simple Calendar to look at, no login, super light
- jjice 5y agoAs 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.
- Brajeshwar 5y agoWhenever 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
- sh87 5y agoI've been a fan and user of David Seah's calendar for 3 years now. https://davidseah.com/node/compact-calendar/ 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.
- greenyoda 5y agoThe 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).
- sharat87 5y agoOh that's interesting. Let me investigate.
- sharat87 5y agoHey, 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.
- maxwell 5y agoI'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.
- sharat87 5y agoHey, thanks. I haven’t figured out customising time ones just yet, but the wrong today problem should be fixed now.
- yardshop 5y agoI'm seeing the same thing, showing March 29. My current time is 2022-03-30 08:14:53 EDT.
- sharat87 5y agoHey, thanks for sharing the time one. Helped in identifying the problem more accurately. This should be fixed now.
- beardyw 5y agoGood 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.
- sharat87 5y agoHey, 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?
- beardyw 5y agoSeems to be OK now. Not sure what happened last time.
- kanonieer 5y agoIt'd be nice if there was an option to set Monday as the first day of the week.
- sharat87 5y agoHey, noted, thanks for the suggestion. I should put this out soon. :)
- ekiauhce 5y agoYou 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
- ajsnigrutin 5y agoAlso "cal -y"
- sharat87 5y agoIndeed. 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.
- padiyar83 5y agoThank 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.
- elthor89 5y agoI 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!
- loloquwowndueo 5y agocal 2022 - will give you the calendar for the whole year.
- chrismatheson 5y agoLove it, simple & useful. Well done :)
- YPPH 5y agoI tried to enter several date format variations in the "Go to date" prompt() pop up. None worked.
- sharat87 5y agoHey, thanks for reporting. Yeah, looks like the event handler is broken. Fix coming up.
- YPPH 5y agoThanks! 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.
- sharat87 5y agoHey, 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.
- wodenokoto 5y agoKinda reminds me of one of my favourite websites, https://weeknumber.com/ https://weeknumber.com/
- deltille 5y agoThanks! 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.
- ThePowerOfFuet 5y ago> Kinda reminds me of one of my favourite websites, https://weeknumber.com/ 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.
- wodenokoto 5y agoYeah, it sucks that they are trying to milk it.
- achoice 5y agohttps://vecka.nu/ https://vecka.nu/ is the Swedish variant, very clean. Translats to "week.now" so easy to remember.
- barbarbar 5y agoYes this one is excellent and very clean and language neutral as well.
- MarcellusDrum 5y ago"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
- maverwa 5y agoshould be fixed now (just tested it and it worked)
- 9woc 5y agoAnother one here: https://www.timeanddate.com/calendar/ https://www.timeanddate.com/calendar/
- sharat87 5y agoAn 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!
- maverwa 5y agothank 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.
- bko 5y agoIt 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 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.
- sharat87 5y agoHey, 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. :)
- mosselman 5y agoVery cool. Optional week numbers would be nice. We use them at work for planning things.
- tibu 5y agoThe 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.
- sharat87 5y agoHey, 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.
- stavros 5y agoThis 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.
- HuwFulcher 5y agoCool, you should have a cookie banner for users to consent to being tracked by Google Analytics though.
- sharat87 5y agoNah, 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. :)
- HuwFulcher 5y agoNice one! No worries
- mnkmnk 5y agoDoesn’t work on mobile.
- sharat87 5y agoHey, 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?
- Hitton 5y agoI like the simplicity. No React or Angular, just vanilla javascript.
- sharat87 5y agoHey, 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.
- digvalley 5y agoI work shifts.. so I build https://skiftkalender.com https://skiftkalender.com And https://skiftkalender.app https://skiftkalender.app To get a calendar that just works for me