I can't understand the logic here

you are viewing a single comment's thread
view the rest of the comments
[–] -1 points 2 weeks ago (7 children)

Then you are incorrect, indexes start at 0

  • source
  • parent
  • hideshow 7 child comments
  • [–] 14 points 2 weeks ago* (last edited 2 weeks ago)

    Week starts on Monday in ISO8601, and developers like ISO8601 so this is also the case in most programming languages by default. In some programming languages, it varies by locale.

    edit: also, Sunday is part of the weekend, not the weekstart.

  • source
  • parent
  • [–] 8 points 2 weeks ago (2 children)

    but why would Sunday be 0 and why would we include Sundays in the week-ENDs?

  • source
  • parent
  • hideshow 2 child comments