Week numbers would typically be ISO weeks, but they seem to include the Sunday from the previous week, and not include the Sunday from the given week. For example:
timew summary 2024-W10 - 2024-W11
includes Sunday from W9 and does not include Sunday from W10. This differs from [imo correct] behavior of :week and :lastweek which use Monday based weeks. I would think week number would correspond exactly to date +%V.
This was tested with timew-1.7.1 and its pegged libshared.
Got the week syntax from src/libshared/test/datetime.t.cpp. Was not sure if the bug should be filed in libshared repo, but it seems to be library-user-specific since :week and :lastweek are working as expected, but let me know if this should be moved there.
Week numbers would typically be ISO weeks, but they seem to include the Sunday from the previous week, and not include the Sunday from the given week. For example:
includes Sunday from W9 and does not include Sunday from W10. This differs from [imo correct] behavior of
:week
and:lastweek
which use Monday based weeks. I would think week number would correspond exactly todate +%V
.This was tested with timew-1.7.1 and its pegged libshared.
Got the week syntax from
src/libshared/test/datetime.t.cpp
. Was not sure if the bug should be filed in libshared repo, but it seems to be library-user-specific since:week
and:lastweek
are working as expected, but let me know if this should be moved there.