RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.DateTimeToModifiedJulianDate Function

Converts a TDateTime value into a modified Julian date.

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

DateUtils

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

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!