JuliaSpace / SatelliteToolbox.jl

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

Added milliseconds to date_to_jd(::DateTime). #71

Closed justbyoo closed 2 years ago

justbyoo commented 2 years ago

Prior version of this function was ignoring milliseconds because the smallest time unit passed to the date_to_jd(::Integer,..., ::Number) method was Dates.second(dateTime), which only provides the whole second. This method takes seconds as a Number, so the simple fix was adding " + Dates.millisecond(dateTime)/1000.0".

ronisbr commented 2 years ago

Hi @justbyoo

Perfect! Thanks for this PR.