You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it might be better to make the month and year units calculatable.
So giving the years to convert from/to would give different results based on leap years for instance.
@teunw Great idea! How do you imagine the implementation of calculable months/years working?
I think we could make this work by implementing the ::calculate() class method on the Month and Year units (see Celsius & Fahrenheit units as an example).
Thanks @teunw for adding the basic time units via #35!
namespace UnitConverter\Unit\Time;
ms
s
hr
min
day
month
μs
ns
week
year
The text was updated successfully, but these errors were encountered: