VSOPTime Class

Definition

This class provide time convert and management for VSOP2013.

public class VSOPTime

Constructors

public VSOPTime(DateTime dt, TimeFrame sourceframe)

Use Datetime to initialize VSOPTime.

Parameters

dt Datetime

A Datetime struct.

sourceframe TimeFrame

TimeFrame of dt. Usually UTC.


Properties

DateTime UTC

UTC Time frame.

DateTime TAI

International Atomic Time

DateTime TT

Terrestrial Time (aka. TDT)

DateTime TDB

Barycentric Dynamical Time. VSOP2013 use this time frame in calculation.

double J2000

Get J2000 from TDB.


Methods

ChangeFrame

static DateTime ChangeFrame(DateTime dt, TimeFrame SourceFrame, TimeFrame TargetFrame)

Convert a Datetime to specific time frame.

Parameters

dt DateTime

A Datetime of any frame.

SourceFrame TimeFrame

Time frame of dt

TargetFrame TimeFrame

Target time frame.

Return

DateTime

Datetime of target time Frame.


ToJ2000

static double ToJ2000(DateTime dt)

Convert a Datetime to J2000.

Parameters

dt DateTime

Datetime to convert

Return

double

Julian date.


FromJ2000

static DateTime FromJ2000(double JD)

Convert a J2000 to Datetime.

Parameters

double

Julian date to analyze.

Return

dt DateTime

Datetime Class.

Last updated