brick / date-time

Date and time library for PHP
MIT License
337 stars 30 forks source link

ZonedDateTime::getIntervalTo and Instant::getIntervalTo #81

Closed solodkiy closed 1 year ago

solodkiy commented 1 year 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 1 year ago

@BenMorel fixed

BenMorel commented 1 year ago

Thank you, released as 0.5.3!