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

Better support for weeks #68

Open
davedelong opened this issue Feb 21, 2024 · 1 comment
Open

Better support for weeks #68

davedelong opened this issue Feb 21, 2024 · 1 comment
Milestone

Comments

@davedelong
Copy link
Owner

Desired functionality:

  • given a Fixed<LTOEDay>, get the week (Array<Fixed<Day>>) that contains it
  • given a Fixed<GTOEMonth>, get an array of weeks in it, with an option to pad out week arrays so they're all 7 days
  • get the last day of a week
@davedelong
Copy link
Owner Author

Thinking about this some more, I think I could get away with an actual Week unit type; it would be GTOEDay and LTOEMonth. It would require significant verification that the current generic extensions to Fixed<Unit> apply correctly.

However, it would mean that it should get most functionality "for free".

@davedelong davedelong added this to the 1.1 milestone Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant