Sign in Join
FPDoc Onlineexperiment

FloatToDateTime function

In unit sysutils

Convert a float to a TDateTime value.

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.