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

[Discussion] Add syntax sugar for LocalDateTime.rangeTo(LocalDate) #8

Open
LeoColman opened this issue Mar 23, 2022 · 0 comments
Open

Comments

@LeoColman
Copy link

val myTime: LocalDateTime

val range = myTime..LocalDate.now()

This currently isn't possible, and we need to adapt myTime to get it's LocalDate part:

val range = myTime.toLocalDate()..LocalDate.now()

I'd love to not have to do this, thus adding a syntax sugar can help in that way.

However, I can see how this is very error-prone, so I"d like to open this one for discussion.

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