SofaJdcalf Method

Julian date conversion with specified decimal places.

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static int Jdcalf(
	int ndp,
	double dj1,
	double dj2,
	int[] iymdf
)

Parameters

ndp  Int32
Number of decimal places in the fraction field.
dj1  Double
First part of the Julian Date.
dj2  Double
Second part of the Julian Date.
iymdf  Int32
Returned year, month, day, fraction array (length 4).

Return Value

Int32
Status code: 0 = OK, <0 = error.

Remarks

This is a P/Invoke wrapper for the SOFA iauJdcalf routine.

Exceptions

ArgumentNullExceptionThrown if any array parameter is null.
ArgumentExceptionThrown if any array parameter has incorrect length.

Version Information

.NET Standard

Supported in: 2.0

See Also