Replies: 1 comment
-
|
I'm mostly AFK this week so I can't go into detail, but it makes sense to implement something similar. Note, however, that "ISO week of year" and "week of year" are different things! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to be able to get a Date's week as counted from the start of the month or the start of the year, similar to Pendulum's
.week_of_monthand.week_of_year. https://pendulum.eustace.io/docs/#attributes-and-propertiesIf it helps, here's how I implemented these in one of my projects.
There might be other counters that would be useful but I couldn't think of any more off the top of my head. Now that I'm thinking about it as well, maybe a
.weeks_since()method would make sense since there's already a.days_since()method? Or maybe a more arbitrary implementation that could work with many intervals.Beta Was this translation helpful? Give feedback.
All reactions