RAD Studio VCL Reference
|
Converts a Julian date to a TDateTime value.
function TryJulianDateToDateTime(const AValue: Double; out ADateTime: TDateTime): Boolean;
Boolean TryJulianDateToDateTime(const Double AValue, TDateTime ADateTime);
DateUtils
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) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|