Live data from Hacker News

Insane complexity of calendrically correct date and time operations

yourcalendricalfallacyis.com

81–90 of 146 posts

Re: Insane complexity of calendrically correct date and time operations

#81

The only question I got is: why we as humans cannot fix this by having a proper calendar system that actually reflects the world and does not have these flaws?

What do you mean by "actually reflecting the world"? If you mean using objective criteria of some sort, how would that help deciding if the week starts on Sunday or Monday, or what days of the week are to be business days?

Re: Insane complexity of calendrically correct date and time operations

#82

> Weeks start on Sunday in the United States, Monday in Europe, and a couple of places start on Saturday. Wow. I live in Europe, and find it weird that people can consider the week to start on Sunday. I guess everything that may appear normal within a cultural frame of reference can be off in another, even the most basic of things!

What is the relevance of saying that a week starts on a particular day? In the most common usage, the "week" starts on Monday in the United States, and concludes on Friday, to be followed by the "weekend". A calendar week of 7 days does start on Sunday, but who cares? If they changed how the calendars were printed, life would be different in no way.

Well for me as Dev it changes how I render a week calendar to a user

Re: Insane complexity of calendrically correct date and time operations

#83
post #72
post #4

Earlier quoted context omitted.

What you want is probably TAI [1], Unix Time has leap seconds. [1] https://en.wikipedia.org/wiki/International_Atomic_Time

The one mistake with UNIX is that UTC is used. It should have been TAI, and leap second adjustment should have been handled by the timezone package (but at the time people weren't worried about leap seconds, so it's understandable). As it is, the system clock has to change . This is as bad as MSDOS time (and other systems which put localtime into the actual RTC). Using UTC as the time reference, independent of local…

Frankly I'm bit confused why civil time in general is based on UTC instead of TAI. Except for astronomy, who does benefit from observing leap seconds?

Re: Insane complexity of calendrically correct date and time operations

#84
post #68

I invented this very regular calendar while I was writing recurring-scheduling software for a scheduling tool: https://calendars.wikia.com/wiki/6*6*10_regular_calendar It was my fantasy escape from the crazy irregularities of the Gregorian calendar.

Can you imagine the transition to that calendar? People wanting their two days off every five working days are one of the problems.

Re: Insane complexity of calendrically correct date and time operations

#85

> Weeks start on Sunday in the United States, Monday in Europe, and a couple of places start on Saturday. Wow. I live in Europe, and find it weird that people can consider the week to start on Sunday. I guess everything that may appear normal within a cultural frame of reference can be off in another, even the most basic of things!

What is the relevance of saying that a week starts on a particular day? In the most common usage, the "week" starts on Monday in the United States, and concludes on Friday, to be followed by the "weekend". A calendar week of 7 days does start on Sunday, but who cares? If they changed how the calendars were printed, life would be different in no way.

So for all intents and purposes, the week actually starts on Monday in the US, if I understand what you're saying.

For instance, if I were to tell you "Beginning of next week, I'm gonna X", you'd understand Monday, correct?

Re: Insane complexity of calendrically correct date and time operations

#86

The only question I got is: why we as humans cannot fix this by having a proper calendar system that actually reflects the world and does not have these flaws?

The world is irregular (Earth's rotation and revolution durations vary) but we want regularity in our calendars and clocks. That's the source of the problem.

Re: Insane complexity of calendrically correct date and time operations

#87

I really dislike the tone these sort of things tend to take, which is “here’s some stuff you think but you’re wrong about.” The reason people get stuff like this wrong (and names, and addresses, and and and) is because it’s really hard to get right. And it’s added difficulty on top of writing code which is already pretty challenging.

[deleted]

Re: Insane complexity of calendrically correct date and time operations

#88

I really dislike the tone these sort of things tend to take, which is “here’s some stuff you think but you’re wrong about.” The reason people get stuff like this wrong (and names, and addresses, and and and) is because it’s really hard to get right. And it’s added difficulty on top of writing code which is already pretty challenging.

The main point is “don’t be naive, since it’s more complicated than you think.”

Knowing it’s complex, the next step is to get help, not hack up your own solution.

I liked the tone... sort of a “can you believe this?!”

Re: Insane complexity of calendrically correct date and time operations

#89
Wisdom and experience from senior hacker developer "Oh you are working with time and dates that is going to get "complicated""

Lets propose a new time format we could count the number of exoseconds since the beginning of the universe. Then convert that number to whatever native time format we want. Store that as a number and use that for conversion. Age of universe 4.415×10^17 seconds, 4.415×10^26 exoseconds

Re: Insane complexity of calendrically correct date and time operations

#90

> Weeks start on Sunday in the United States, Monday in Europe, and a couple of places start on Saturday. Wow. I live in Europe, and find it weird that people can consider the week to start on Sunday. I guess everything that may appear normal within a cultural frame of reference can be off in another, even the most basic of things!

> Wow. I live in Europe, and find it weird that people can consider the week to start on Sunday.

Netherlands reporting in. My parents always taught me that the week starts on Sunday.

Post reply on HN