Skip to content
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

#11: add "week" as a unit for floor_date #12

Merged
merged 4 commits into from
Jul 26, 2024

Conversation

mistermichaelll
Copy link
Contributor

This PR adds "week" as an optional unit for the floor_date() function, per Issue #11.

As I explained in the issue, lubridate supports "week" as a unit and defaults to using Sunday as the start of the week. This PR also uses Sunday as the start of the week, and I note such in the docstrings for floor_date

I could foresee in the future a request to support overriding this as one can do in lubridate (see docs here), but I think this is a good first step in enabling this unit now!

@drizk1 drizk1 merged commit a152c24 into TidierOrg:main Jul 26, 2024
3 checks passed
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