Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
truncate msecs
Browse files Browse the repository at this point in the history
  • Loading branch information
wildart committed Aug 13, 2018
1 parent 1456890 commit 9b1c54f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser.jl
Expand Up @@ -448,6 +448,9 @@ function datetime(p::Parser, syear::String, st::Integer)
end
if length(fsec)>0
msec = Base.parse(Int, String(fsec))
if msec > 1000 # truncate msecs
msec = round(Int,msec/(10^(ndigits(msec)-3)))
end
end
end

Expand Down

0 comments on commit 9b1c54f

Please sign in to comment.