Astronomical Time
This module is a simple wrapper for AstroTime.jl which offers tools for astronomical time keeping.
AstroTime.@timescale
— Macro@timescale scale [parent[, oneway]]
Define a new time scale and the corresponding Epoch
type alias.
Arguments
scale
: The name of the time scaleparent
: The "parent" time scale to which it should be linked (optional)oneway
: Iftrue
, only the transformation fromparent
toscale
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