System.DateUtils.ModifiedJulianDateToDateTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ModifiedJulianDateToDateTime(const AValue: Double): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall ModifiedJulianDateToDateTime(const double AValue);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

Converts a modified Julian date to a TDateTime value.

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 they use a more recent date as a starting point.

Note: If ModifiedJulianDateToDateTime cannot convert the date specified by AValue; it raises an EConvertError exception.

See Also


Code Examples