We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It will be useful to have LocalDateTimeRange to encapsulate start and end datetime. Quite similar to the LocalDateRange.
LocalDateTimeRange
LocalDateRange
Otherwise we need to do something like this if we want to pass range as one parameter.
private function getRegistrationsBetweenDates( LocalDateRange $dateRange ): array { $registeredAtFrom = $dateRange->getStart()->atTime(LocalTime::min()); $registeredAtTo = $dateRange->getEnd()->atTime(LocalTime::max()); // ... }
But this way we can only use 00:00:00 and 23:59:59 time.
Prososal:
private function getRegistrationsBetweenDateTimes( LocalDateTimeRange $dateTimeRange ): array { $registeredAtFrom = $dateTimeRange->getStart(); $registeredAtTo = $dateTimeRange->getEnd(); // ... }
The text was updated successfully, but these errors were encountered:
A comment worth referencing here : #45 (comment)
Sorry, something went wrong.
No branches or pull requests
It will be useful to have
LocalDateTimeRange
to encapsulate start and end datetime. Quite similar to theLocalDateRange
.Otherwise we need to do something like this if we want to pass range as one parameter.
But this way we can only use 00:00:00 and 23:59:59 time.
Prososal:
The text was updated successfully, but these errors were encountered: