RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.TryJulianDateToDateTime Function

Converts a Julian date to a TDateTime value.

Pascal
function TryJulianDateToDateTime(const AValue: Double; out ADateTime: TDateTime): Boolean;
C++
Boolean TryJulianDateToDateTime(const Double AValue, TDateTime ADateTime);

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 can't convert AValue into a TDateTime value. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!