Sign in Join
FPDoc Onlineexperiment

InvalidDateDayError procedure

In unit DateUtils

Raise an EConvertError exception when a day is not a valid day of a year.

Declaration

pascal
procedure InvalidDateDayError(const AYear: Word; const ADayOfYear: Word)

Arguments

AYear

Year.

ADayOfYear

Invalid day of the year.

Description

InvalidDateDayError raises an EConvertError exception and formats the error message with an appropriate description made up from the parts AYear and ADayOfYear.

Normally this function should not be needed, the conversion routines call it when they have received invalid arguments.

See also

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