AstroUtilitiesJulianDateToDateTime Method

Convert a Julian date to a UTC DateTime value on the Gregorian time scale

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static DateTime JulianDateToDateTime(
	double JD
)

Parameters

JD  Double
Julian date

Return Value

DateTime
UTC DateTime value corresponding to the supplied Julian date

Remarks

Julian dates are always in UTC.

The algorithm is from the Explanatory Supplement to the Astronomical Almanac 3rd Edition 2013 edited by Urban and Seidelmann pages 617-619 and has been validated against the USNO Julian date calculator at https://aa.usno.navy.mil/data/docs/JulianDate.php

Exceptions

InvalidValueExceptionIf the Julian date corresponds to a date before 15th October 1582 when the Gregorian calendar was introduced.

Version Information

.NET Standard

Supported in: 2.0

See Also