EncodeDateWeek function
Encode a
TDateTime value from a year, week and day of week triplet.
Declaration
function EncodeDateWeek(const AYear: Word; const AWeekOfYear: Word;
const ADayOfWeek: Word): TDateTimeArguments
AYear | Year part. |
AWeekOfYear | Week of the year part. |
ADayOfWeek |
Function result
TDateTime value representing
AYear,
AWeekOfYear and
ADayOfWeek.
Description
EncodeDateWeek encodes the values
AYear,
AWeekOfYear
and
ADayOfWeek to a date value and returns this value.
For an example, see DecodeDateWeek.
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.
