kevinkhill / php-duration

Convert durations of time between colon-formatted, human-readable, and seconds
MIT License
158 stars 26 forks source link

zeroFill does not fills hours segment #27

Open kminek opened 3 years ago

kminek commented 3 years ago

i would expect that zeroFill param on formatted method fills hours segment also:

$duration = new \Khill\Duration\Duration(4265);
dump($duration->formatted(null, true)); // returns: 1:11:05 instead of 01:11:05