-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Week number is changed when starting day is modified #66
Comments
hey @Granddave I really don't know if this is an expected behaviour. Could you help me understand? We assume that each line have a diferent week day, like a counter that increments for each break line. Let deep in dive the january month:
We change the week number as the line breaks. But in this case when we start with Monday at january, how should I show the week number? Could you provide example please? |
Now I got the bug, according to this ISO https://en.wikipedia.org/wiki/ISO_8601 (week starts only with monday) we should present january 2023 like this:
I don't know when I'll be able to solve this, but it would be fun, thanks |
Hi! Yes, that's correct, Sunday 1th is week 52 of last year.
Hehe that's good 😄 |
@arthurhenrique Did you mean this instead?
|
January
Tu We Th Fr Sa Su Mo
1 1 2
2 3 4 5 6 7 8 9
3 10 11 12 13 14 15 16
4 17 18 19 20 21 22 23
5 24 25 26 27 28 29 30
6 31 How should we handle this? Given that the first week has Sunday (from week 52 of 2022), and Monday (from week 1 of 2023).
from the wiki page seems to be the most straightforward definition. |
Hi, I noticed that the week numbers are off by one when
--starting-day 1
is provided.Today's the 2023-09-23, week 38 with Monday as start of the week, but when
--starting-day 1
is provided the week 39 is shown. Locale isen_US
.I'm running v1.1.0 via cargo install.
Below are snippets of the current month.
rusti-cal -w --starting-day 0
rusti-cal -w --starting-day 1
The text was updated successfully, but these errors were encountered: