kevinkhill / php-duration

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

Using days should be possible too #3

Closed dimitri-koenig closed 7 years ago

dimitri-koenig commented 8 years ago

Using days like "3d" should be possible too. Only catch is: you should also be able to tell how many hours a day should have so you are able to get a workday conversion.

kevinkhill commented 8 years ago

This is a good idea for expanding the library. The reason its only up to hours is because this library was initially created for calculating and converting runtimes of machinery, and we have no runtimes in days :laughing:

I don't think it would be too hard to implement