InvalidDateTimeError
Raise an EConvertError about an invalid date-time specification.
Declaration
Source position: dateutil.inc line 389
procedure InvalidDateTimeError(const AYear: Word; const AMonth: Word;
const ADay: Word; const AHour: Word;
const AMinute: Word; const ASecond: Word;
const AMilliSecond: Word;
const ABaseDate: TDateTime);
procedure InvalidDateTimeError(const AYear: Word; const AMonth: Word;
const ADay: Word; const AHour: Word;
const AMinute: Word; const ASecond: Word;
const AMilliSecond: Word);
Description
InvalidDateTimeError raises an EConvertError exception and formats the error message with an appropriate description made up from the parts AYear, AMonth, ADay,AHour, AMinute, ASecond and AMilliSecond.
Normally this function should not be needed, the conversion routines call it when they have received invalid arguments.
See also
Name | Description |
---|---|
InvalidDateDayError | Raise an EConvertError exception when a day is not a valid day of a year. |
InvalidDateMonthWeekError | Raise an EConvertError exception when a Year,Month,WeekOfMonth,DayofWeek is invalid. |
InvalidDateWeekError | Raise an EConvertError with an invalid Year, WeekOfyear and DayOfWeek specification |
InvalidDayOfWeekInMonthError | Raise an EConvertError exception when a Year,Month,NthDayofWeek,DayofWeek is invalid. |