timex icon indicating copy to clipboard operation
timex copied to clipboard

Fix dialyzer errors when using from_* functions

Open danturn opened this issue 2 years ago • 0 comments

i was getting a dialyzer error when calling

Timex.Duration.from_hours() with a float

i believe that the code supports floats, but the typespec on one function is incorrect

this pr adds the | float to the from_microseconds function and adds some tests for calculating from_* with floats

danturn avatar Oct 30 '23 16:10 danturn