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.

Common Calendrical Fallacies

72 pointsby _ttgover 3 years ago

15 comments

dahfizzover 3 years ago
This comes off as very &quot;well akchtually&quot;; more snarky than helpful.<p>A great example:<p>&gt;It is normal that the Sept-, Oct-, Nov-, and Dec- months are numbered 9, 10, 11, and 12<p>&gt;False. This is very weird. They used to be months 7, 8, 9, and 10, but some reform to the Roman calendar back in the day resulted in the creation of January and February, which messed everything up.<p>No software project cares what the calendar looked like during the roman empire. Sure, its quirky that OCTober is month 10 instead of 8. Doesn&#x27;t affect anything at all.<p>&gt; The current year is 2020<p>&gt; False. It’s the year 5780 in the Hebrew calendar.<p>Obviously, anyone who says &quot;the current year is 2020&quot; is talking about the Gregorian calendar that everyone is familiar with. If your wife asked to have dinner at 7pm, are you going to scold her for not specifying the implied UTC offset? Its silly to even bring up.<p>That said, I will never willingly write code that deals with times &#x2F; calendars.
评论 #30271213 未加载
评论 #30266573 未加载
评论 #30265381 未加载
评论 #30267292 未加载
评论 #30266063 未加载
评论 #30267179 未加载
评论 #30265269 未加载
评论 #30267337 未加载
评论 #30265853 未加载
评论 #30265539 未加载
评论 #30268863 未加载
atoavover 3 years ago
Some of these are quite interesting, e.g. that Oceania has an offset from ITC &gt;12 hours. Others are coming of more like pedantic &quot;gotcha&quot; questions where the answer is that some more or less obscure calendar system is the exception here. Yeah sure it is, why wouldn&#x27;t the year in the japanese calendar depend on the death of their emperor. That just isn&#x27;t something my small software tool is likely willing to support anyways.<p>So I think instead of &quot;scolding&quot; the reader with a <i>False</i> here, maybe a <i>Depends</i> would be both more friendly and more well suited.
评论 #30265570 未加载
评论 #30275217 未加载
TehShrikeover 3 years ago
I wish there was a version of this that only contained examples relevant to e.g. the Gregorian calendar, or even within the subset of the Gregorian calendar specified within POSIX.<p>I get whiplash going back and forth between &quot;relevant thing I need to care about&quot; and &quot;obviously irrelevant&quot; in this list
评论 #30266280 未加载
modelessover 3 years ago
How about &quot;the sun is approximately overhead at noon&quot;, &quot;the sun is at its highest point in the sky at noon&quot;, &quot;the sun rises each day&quot;, &quot;noon is approximately the time that people eat a midday meal&quot;, or &quot;midnight is a good time to switch which day &#x27;tomorrow&#x27; refers to&quot;.<p>I&#x27;ve made many mistakes attributable to &quot;tomorrow&quot; switching at midnight according to computers when in common human usage &quot;tomorrow&quot; really switches closer to sunrise, and certainly not before one goes to bed unless one is staying up all night.
shazarover 3 years ago
&gt; So if you’re writing code and are trying to use the time 00:00:00 to represent “no time”, you will be wrong in these countries.<p>Well, obviously using `00:00:00` as no-time is a terrible idea, but isn&#x27;t that statement just wrong? If it&#x27;s used to represent no-time, it would actually have a very low chance of doing what it&#x27;s supposed to do in those countries, but fail all the time at all other time zones.
评论 #30267434 未加载
Fnoordover 3 years ago
&gt; The current year is 2020<p>False, the current year according to the Grogorian calendar is 2022.<p>Disappointing an article as pedantic as this one fails itself. (Yes, I am aware it was likely written in 2020. That is the point: it assumed the reader read it in 2020.)
thinkharderdevover 3 years ago
Back in the dark ages, my first project as a professional software engineer was working on a web app for something or other. I had to write a JS function to figure out whether the current year was a leap year. It didn&#x27;t go well....<p>It was a painful experience but it aught me a valuable lesson. To this day I would sooner write my own bootloader than roll my own date&#x2F;time library.
noneeeedover 3 years ago
I like this.<p>I&#x27;ve seen a number of &quot;Falshoods programmers believe about X&quot; and they almost never provide examples or explanations, which is rather frustrating for some of the more obscure or weird cases.
评论 #30267719 未加载
cutlerover 3 years ago
He omitted a really big one - the beginning of spring. Most people are convinced spring begins at the equinox around 20th March but are also quite happy to talk about Mid-Summer&#x27;s Day at the summer solstice around 20th June. Sorry, ya can&#x27;t have it both ways. If the summer solstice is mid-summer then the spring equinox 3 months earlier must be mid-spring. It all boils down to how seasons are defined and here I find even astronomers can be really lazy in their thinking. Seasons are defined by the intersection of the Sun&#x27;s apparent path and the equator so equinoxes are where the Sun&#x27;s path crosses the equator and the solstices (Sun standing still) are the maxima and minima of the Sun&#x27;s path. However, a maxima&#x2F;minima can only be the mid-point of a season since points either side of a maxima&#x2F;minima are equal in terms of the relative amounts of daylight. Seasons are defined by the amount of daylight, hence the summer solstice in the northern hemisphere, around 20th June, is the mid-point of summer when we celebrate &quot;Mid-Summer&#x27;s Day&quot;. All else follows from this and spring begins around 5th February in the northern hemisphere.
评论 #30267666 未加载
alexdbirdover 3 years ago
I was relieved to read the final paragraph.<p>I have found NSDate&#x2F;NSCalendar to be the best designed API for date and time calculations, and I never knew it was built on top of ICU. It discourages bad assumptions while many others try to make a more &#x27;fluent&#x27; interface that encourages them.<p>When I first tried Joda in Java it had a builder interface that stank, I was able to easily write tests that produced the wrong date or threw an exception simply by changing the order of construction. But I think that&#x27;s long gone.
fomine3over 3 years ago
I like this JavaDoc <a href="https:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;8&#x2F;docs&#x2F;api&#x2F;java&#x2F;time&#x2F;chrono&#x2F;ChronoLocalDate.html" rel="nofollow">https:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;8&#x2F;docs&#x2F;api&#x2F;java&#x2F;time&#x2F;chrono&#x2F;C...</a>
allemagneover 3 years ago
Pretty cool reminder that calendars and time in general are one of those troublesome domains of fractal complexity. Even this seems to just scratch the surface of regional variations of certain traditional calendars, how people&#x27;s ages can be determined differently, etc.
ksajover 3 years ago
This is like the problem with astrology, since there are actually 13 sidereal months. You can even <i>see</i> that in the charts that show the star and planet locations on any given day, but somehow they are ignored by &quot;psychics&quot; everywhere.
6510over 3 years ago
~ No one uses week numbers<p>~ Events always start and end on the same day<p>~ Any event has a start and end time<p>~ All events are on a specific day
6510over 3 years ago
There is one in the article too!<p>&gt; The current year is 2020<p>&gt; False. It’s the year 5780 in the Hebrew calendar.<p>Like an Easter egg.