Astronomical Time

This module is a simple wrapper for AstroTime.jl which offers tools for astronomical time keeping.

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 UTC

julia> GMT isa TimeScale
true

julia> GMTEpoch
Epoch{GMTScale,T} where T

julia> find_path(TAI, GMT)
3-element Array{TimeScale,1}:
 TAI
 UTC
 GMT