satellite_ex v0.1.4 Satellite.Dates View Source
Link to this section Summary
Functions
Converts a time represented in epoch time to %{month, day, hour, minute, second} format.
Converts a gregorian date to julian date
Converts a julian date to greenwich mean sidereal time (GMST)
Converts a datetime to greenwich mean sidereal time
Link to this section Functions
Converts a time represented in epoch time to %{month, day, hour, minute, second} format.
This format comes from the two line element(TLE) set format, which provides a reference for all other time-based fields in the data.
See the following for a detailed explanation: https://celestrak.com/columns/v04n03/#FAQ02
Examples
iex> Satellite.Dates.epoch_time_to_mdhms(131, 349.872256942)
%{day: 15, hr: 20, minute: 56, mon: 12, second: 2.9997887981517124}
Converts a gregorian date to julian date
Examples
iex> Satellite.Dates.jday({{2016, 8, 6}, {17, 35, 12}})
2457607.2327777776
Converts a julian date to greenwich mean sidereal time (GMST)
Examples
iex> jd = Satellite.Dates.jday({{2016, 8, 6}, {17, 35, 12}})
iex> Satellite.Dates.julian_to_gmst(jd)
3.8307254407191067
Converts a datetime to greenwich mean sidereal time