kevinkhill/php-duration

toMinutes() method

dimitri-koenig opened this issue · 3 comments

Cosmetic addition to return time in minutes, but still a useful one :-)

and the method would return a float if not an even amount of minutes? or a rounded integer? Like is said in #3 about the specificity of the library, I only needed to store a duration in a database.

I would happily accept a pull request if you want to add the method.

Thanks for merging

Of course! That's the easiest part, thank you for contributing