TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Weekle – a web app to learn how to calculate the day of the week

122 pointsby benjoffeabout 2 years ago
Mentally calculating the day-of-the-week for any date in history sounds like an impossible task for a normal person, but the algorithm is actually pretty simple to learn.<p>Although there are tutorials for this elsewhere online, and little quizzes available, there didn&#x27;t seem to be anything well optimised with multiple practice modes etc.<p>I originally created a basic version of this just for myself, but a small group of friends and family found it interesting and gave suggestions such as the daily game.<p>Multi-lingual support is a bit rudimentary at the moment, it will only translate the month names and weekday names, not other text. If any translation mistakes are identified please let me know.<p>Other feedback is welcome too.

11 comments

jen729walmost 2 years ago
Dividing by 7 is also a cool trick and it’s way easier than this.<p>1&#x2F;7th is 0.142857 recurring. All you need to remember is one-four-two-eight-five-seven. Say it over and over. It’s my favourite number.<p>The magic: to get 2&#x2F;7, 3&#x2F;7, <i>any</i>&#x2F;7, just move the decimal point:<p>- 2&#x2F;7: 0.285714285714…<p>- 3&#x2F;7: 0.428571428571…<p>- 4&#x2F;7: 0.571428571428… (I’m typing these out but ‘from memory’ but not really: only by knowing 1-4-2-8-5-7)<p>- 5&#x2F;7 &amp; 6&#x2F;7: left as an exercise for the reader.<p>So then the trick is to play a bit of mental magic. Pretend like this is really hard and that every decimal point is stretching your mental capacity to its very edge.<p>31&#x2F;7? That’s 4, with 3&#x2F;7 left over. Say it out loud as you gaze in to the middle distance and do this difficult, difficult calculation in your head: “four point four two eight five seven … one four … two eight five … seven one four …” and so on.<p>A fun trick which is very occasionally practically useful.
评论 #36011441 未加载
评论 #36027336 未加载
评论 #36019922 未加载
midasuniabout 2 years ago
First question was “08&#x2F;10&#x2F;2023”<p>The majority of the world uses little endian, so the 8th day of the 10th month of the 2023rd year. 8th October is Sunday, as I know that because it’s the same day as 9th of May.<p>However experiments E has told me that much of the internet uses the minority American view of “middle endian”<p>Probably worth making it clear.
评论 #36009406 未加载
评论 #36008486 未加载
评论 #36007940 未加载
jbaberalmost 2 years ago
I&#x27;ve found the Month&#x27;s First Sunday method[1] (a mild simplification of the Doomsday Algorithm including the odd-plus-eleven innovation) easiest, fastest, and most practical. I&#x27;m not insisting on it, just great for me, and I wish it were better known.<p>[1]: <a href="https:&#x2F;&#x2F;firstsundaydoomsday.blogspot.com&#x2F;2011&#x2F;01&#x2F;learn-by-example.html?m=1" rel="nofollow">https:&#x2F;&#x2F;firstsundaydoomsday.blogspot.com&#x2F;2011&#x2F;01&#x2F;learn-by-ex...</a>
hluskaalmost 2 years ago
My seven year old thinks I have superpowers now. Needless to say, I’m a big fan - it’s pretty amazing to go from learning to applying as quickly as I did. Great job!
keerthikoalmost 2 years ago
Love it, why can I not choose YYYY&#x2F;MM&#x2F;DD as my date format though (tbh this should be default with manual selection to anything else!)
评论 #36009765 未加载
scottehabout 2 years ago
This looks easier to memorise than another method: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Doomsday_rule" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Doomsday_rule</a><p>Nice work on the site!
评论 #36008530 未加载
评论 #36008368 未加载
entropy47about 2 years ago
Can you add more detail on the year table at the very bottom &#x2F; how you&#x27;re meant to use it? I can memorise it but I&#x27;m not sure how you&#x27;re meant to use it after that.
评论 #36008046 未加载
quickthrower2almost 2 years ago
What do you get for Sep 3 1752?
评论 #36017674 未加载
connordonerabout 2 years ago
I love the bit that sticks out on desktop with the QR code. Stellar work, Ben!
评论 #36008304 未加载
AdieuToLogicalmost 2 years ago
&gt; Mentally calculating the day-of-the-week for any date in history sounds like an impossible task for a normal person ...<p><pre><code> $ cal &lt;month&gt; &lt;year&gt; </code></pre> And look :-)
onetokeoverthealmost 2 years ago
This was done ages ago.