RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.ModifiedJulianDateToDateTime Function

Converts a modified Julian date to a TDateTime value.

Pascal
function ModifiedJulianDateToDateTime(const AValue: Double): TDateTime;
C++
TDateTime ModifiedJulianDateToDateTime(const Double AValue);

Call ModifiedJulianDateToDateTime to convert a modified Julian date to the corresponding TDateTime value. 

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.

Note: If ModifiedJulianDateToDateTime can't convert the date specified by AValue, it raises an EConvertError exception.
 

 

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