brick / date-time

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

Add ZonedDateTime::getDurationTo method #71

Closed solodkiy closed 11 months ago

solodkiy commented 1 year ago

Just more convenient way to get Duration between two ZonedDateTime

$duration = Duration::between($first->getInstant(), $second->getInstant());
->
$duration = $first->getDurationTo($second);
BenMorel commented 11 months ago

A few nitpicks, otherwise LGTM @solodkiy!

solodkiy commented 11 months ago

@BenMorel Resolved

BenMorel commented 11 months ago

Released in 0.5.1!