Skip to content

Time: Coalesce to Float before Conversion

Latest

Choose a tag to compare

@msaffitz msaffitz released this 29 Sep 01:21
be101f1

Time.at can throw an exception if passed a string that is overly precise. Converting to float prior to this avoids that. Note that the epoch may be returned when the string cannot be converted to a float; previously an exception was raised.