System.DateUtils.TryJulianDateToDateTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE bool __fastcall TryJulianDateToDateTime(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 Julian date to a TDateTime value.

Call TryJulianDateToDateTime to convert a Julian date to the corresponding TDateTime value.

AValue is the Julian date to convert. The Julian date is the number of days, including fractional days, since 4713 BC January 1, Greenwich noon. Julian dates are used by astronomers, geophysicist, and others who need an unambiguous dating system based on continuing day counts.

ADateTime returns the corresponding TDateTime value.

TryJulianDateToDateTime 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