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

Add DayOfMonth type #112

Open
bdsl opened this issue Aug 5, 2024 · 0 comments
Open

Add DayOfMonth type #112

bdsl opened this issue Aug 5, 2024 · 0 comments

Comments

@bdsl
Copy link
Contributor

bdsl commented Aug 5, 2024

Proposing a type to to represent a specific day of the month, between 1 and 31. Similar to the existing type DayOfWeek

The immediate use case I have in mind for this is to record which day a monthly payment should happen on, but there are probably several other use cases, and of course this could be used a constituent of existing types MonthDay, LocalDate etc.

I'm not sure if would be better implemented as a class or an Enum - 31 seems near the border of being too many or not too many cases for an enum.

I might have time to implement this if its desired.

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

No branches or pull requests

1 participant