EncodeDateTime function
Encodes a TDateTime value from all its parts.
Declaration
function EncodeDateTime(const AYear: Word; const AMonth: Word;
const ADay: Word; const AHour: Word;
const AMinute: Word; const ASecond: Word;
const AMilliSecond: Word): TDateTimeArguments
AYear | Year. |
AMonth | Month. |
ADay | Day of the month. |
AHour | Hour of the day. |
AMinute | Minutes. |
ASecond | Seconds. |
AMilliSecond | Milliseconds. |
Function result
TDateTime value representing the complete timestamp.
Description
EncodeDateTime encodes the values
AYear
AMonth,
ADay,
AHour,
AMinute,
ASecond and
AMilliSecond
to a date/time value and returns this value.
For an example, see DecodeDateTime.
Errors
If any of the arguments is not valid, then an
EConvertError
exception is raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
