kevinkhill / php-duration

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

toMinutes() method #4

Closed dimitri-koenig closed 8 years ago

dimitri-koenig commented 8 years ago

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

kevinkhill commented 8 years ago

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.

dimitri-koenig commented 8 years ago

Thanks for merging

kevinkhill commented 8 years ago

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