I can't understand the logic here

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

Then you are incorrect, indexes start at 0

  • source
  • parent
  • hideshow 7 child comments
  • [–] 13 points 2 months ago* (last edited 2 months 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 months 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