Time Scales

AstroTime.updateFunction
AstroTime.update()

Download up-to-date IERS tables from the internet to enable transformations to and from the UT1 time scale.

source
AstroTime.@timescaleMacro
@timescale scale [parent[, oneway]]

Define a new time scale and the corresponding Epoch type alias.

Arguments

  • scale: The name of the time scale
  • parent: The "parent" time scale to which it should be linked (optional)
  • oneway: If true, only the transformation from parent to scale is registered (optional, default: false)

Example

julia> @timescale GMT TAI

julia> GMT isa TimeScale
true

julia> GMTEpoch
Epoch{GMTScale, T} where T

julia> find_path(TT, GMT)
3-element Vector{TimeScale}:
 TT
 TAI
 GMT
source
AstroTime.TimeScales.TimeScaleType

All timescales are subtypes of the abstract type TimeScale. The following timescales are defined:

  • UT1 — Universal Time
  • TAI — International Atomic Time
  • TT — Terrestrial Time
  • TCG — Geocentric Coordinate Time
  • TCB — Barycentric Coordinate Time
  • TDB — Barycentric Dynamical Time
source