System.DateUtils.TryModifiedJulianDateToDateTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function TryModifiedJulianDateToDateTime(const AValue: Double;
out ADateTime: TDateTime): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall TryModifiedJulianDateToDateTime(const double AValue, /* out */ System::TDateTime &ADateTime);

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 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 cannot convert AValue into a TDateTime value.

See Also


Code Examples