JuliaSpace / SatelliteToolbox.jl

A toolbox for satellite analysis written in julia language.
MIT License
249 stars 33 forks source link

Integer conversion from Julian Day to DateTime fails when the seconds are 0 #30

Closed ronisbr closed 5 years ago

ronisbr commented 5 years ago

The integer conversion from Julian Day to DateTime has a bug when the seconds are 0:

julia> JDtoDate(Int, 2.45754095833333e6)
(2016, 6, 1, 10, 59, 60)

The DateTime conversion will fail if the seconds are equal or large then 60.