brick / date-time

Date and time library for PHP
MIT License
321 stars 29 forks source link

ZonedDateTime::getIntervalTo and Instant::getIntervalTo #81

Closed solodkiy closed 9 months ago

solodkiy commented 9 months ago

More convenient way to get Interval from two ZonedDateTime.

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

relates to https://github.com/brick/date-time/pull/71

solodkiy commented 9 months ago

@BenMorel fixed

BenMorel commented 9 months ago

Thank you, released as 0.5.3!