79
January 1st is not always on the first week of the year
(www.jpvalencia.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
If you think looking at Thursday seems like a random choice: It’s basically a majority vote among the days of the week. If Thursday is in the new year, then 4 days (Thu–Sun) are in the new year. If Thursday is in the old year, then 4 days are in the old year (Mon–Thu).
The 1st day of the feek is not universal. I grew up with the week starting on sunday
Yes, another thing in the neverending list of shit you have to learn at some point if you’re any kind of programmer.
Some people start their week on the wrong day.
Like ISO 8601. /s
Is this a thing outside the USA? It always bugs me when apps default to this. How does it make any sense for the week to start with the weekend?
A string has two ends
A string is reversible, a week is not. A week has a beginning and an end.
I've generally seen Sunday to be the start of the week here, my current headcanon for it is that Sunday and Saturday sort of book-end on both sides of the week, hence week-end_s_ plural
I'm just curious how this works in practice.
When you say something like "Let's meet up this weekend", is it implied that you will meet on Saturday, since Sunday is the other end of next week, so technically a different weekend?
Not quite sure actually, I think we end up specifying a day or implicitly consider both of them