Skip to content

Conversation

@tuberculo
Copy link

With the commits in this pull request, the user can choose any day as the first day of the week, not only Sunday or Monday. In order to do that, the user should choose a number from 0 to 6, where 0 is Sunday and 6 is Saturday. The old syntax ("M", "S") is still accepted, so this won't break anything.
Additionally, this pull request simplifies the code as it avoids an if-else with very similar content in both conditions.

@mschilli87
Copy link

Just out of curiousity: What is an actual use case for this feature?

@tuberculo
Copy link
Author

The Brazilian power schedule is reviewed weekly and the week starts on Saturday (see https://www.ons.org.br/Paginas/resultados-da-operacao/historico-da-operacao/cmo.aspx).
I don't know any use case for other days (including Monday) as start of the week, but someone may need or prefer to use any week day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants