issues
search
ohler55
/
oj
Optimized JSON
http://www.ohler.com/oj
MIT License
3.12k
stars
250
forks
source link
Fix xmlschema time parsing
#899
Closed
wintonpc
closed
7 months ago
wintonpc
commented
10 months ago
resolves #898
fixed bug caused by assuming exactly 9 fractional digits
passing seconds to
Time.new
as a
Rational
eliminates the need to fudge nanoseconds by 0.5
the result is now
==
to that of
Time.parse
, even for insane precisions
the new code is faster than the old code for typical numbers of fractional digits (by my measurements)
removed unused ID definitions left over from
https://github.com/ohler55/oj/pull/810
Time.new
as aRational
eliminates the need to fudge nanoseconds by 0.5==
to that ofTime.parse
, even for insane precisions