RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.TryModifiedJulianDateToDateTime Function

Converts a modified Julian date to a TDateTime value.

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

DateUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!