kevinkhill / php-duration

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

Add support for microseconds #12

Closed pulzarraider closed 6 years ago

pulzarraider commented 6 years ago

In our project we need seconds with higher precisions - microseconds, e.g. for storing and formatting best time of athlets.

This PR adds support for microseconds without BC break.

The code is also reformatted according to PSR1/PSR2.

Diff without whitespace changes: https://github.com/kevinkhill/php-duration/pull/12/files?w=1

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.1%) to 97.727% when pulling 50400de51e006a759aed420529bc7ea71d97d003 on pulzarraider:microseconds into 9fbb2eaf584d0e04f9d49e008c6abe56e2915625 on kevinkhill:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.1%) to 97.727% when pulling 50400de51e006a759aed420529bc7ea71d97d003 on pulzarraider:microseconds into 9fbb2eaf584d0e04f9d49e008c6abe56e2915625 on kevinkhill:master.

kevinkhill commented 6 years ago

Looks good to me. Thank you for your contribution!

pulzarraider commented 6 years ago

@kevinkhill Thank you for accepting the PR.