Skip to content

FloatToDateTime

Convert a float to a TDateTime value.

Declaration

Source position: sysstrh.inc line 214

  function FloatToDateTime(const Value: Extended) : TDateTime;

Description

FloatToDateTime converts the Value floating point value to a TDateTime value. It checks whether Value is in the valid range of dates (determined by MinDateTime and MaxDateTime ). If not, an EConvertError exception is raised.

Errors

If Value is out of range, an EConvertError exception is raised.

See also

Name Description
EConvertError Conversion error.
MaxDateTime Maximum TDateTime value.
MinDateTime Minimum TDateTime value.