From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function TryJulianDateToDateTime(const AValue: Double; out ADateTime: TDateTime): Boolean;


extern DELPHI_PACKAGE bool __fastcall TryJulianDateToDateTime(const double AValue, /* out */ System::TDateTime &ADateTime);


Type Visibility Source Unit Parent
function public
System.DateUtils System.DateUtils


Converts a Julian date to a TDateTime value.

Call TryJulianDateToDateTime to convert a Julian date to the corresponding TDateTime value.

AValue is the Julian date to convert. The Julian date is the number of days, including fractional days, since 4713 BC January 1, Greenwich noon. Julian dates are used by astronomers, geophysicist, and others who need an unambiguous dating system based on continuing day counts.

ADateTime returns the corresponding TDateTime value.

TryJulianDateToDateTime returns True if it can successfully convert AValue to a TDateTime value. It returns False if it cannot convert AValue into a TDateTime value.

See Also

Code Examples