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

ZonedDateTime::getIntervalTo and Instant::getIntervalTo #81

Merged
merged 3 commits into from
Sep 26, 2023

Conversation

solodkiy
Copy link
Contributor

@solodkiy solodkiy commented Sep 16, 2023

More convenient way to get Interval from two ZonedDateTime.

$a->getIntervalTo($b);
// vs old version
Interval::of($a->getInstant(), $b->getInstant())

relates to #71

src/Instant.php Outdated Show resolved Hide resolved
src/ZonedDateTime.php Outdated Show resolved Hide resolved
tests/InstantTest.php Outdated Show resolved Hide resolved
@solodkiy
Copy link
Contributor Author

@BenMorel fixed

@BenMorel BenMorel merged commit 8fdf91c into brick:master Sep 26, 2023
7 checks passed
@BenMorel
Copy link
Member

Thank you, released as 0.5.3!

@solodkiy solodkiy deleted the getIntervalTo branch September 27, 2023 20:49
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