RAD Studio VCL Reference
|
Converts a modified Julian date to a TDateTime value.
function TryModifiedJulianDateToDateTime(const AValue: Double; out ADateTime: TDateTime): Boolean;
Boolean TryModifiedJulianDateToDateTime(const Double AValue, TDateTime ADateTime);
Call TryModifiedJulianDateToDateTime to convert a modified Julian date to the corresponding TDateTime value.
AValue is the modified Julian date to convert. The modified Julian date is the number of days, including fractional days, since Greenwich midnight on November 17, 1858. Modified Julian dates are based on Julian dates, but adjusted to use midnight rather than noon as a starting point and to use a more recent date as a starting point.
ADateTime returns the corresponding TDateTime value.
TryModifiedJulianDateToDateTime 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!
|