EncodeDateDay function
Encodes a year and day of year to a TDateTime value.
Declaration
function EncodeDateDay(const AYear: Word; const ADayOfYear: Word)
: TDateTimeArguments
AYear | Year part. |
ADayOfYear | Day of the year part. |
Function result
TDateTime value representing the date specified by
AYear and
ADayOfYear.
Description
EncodeDateDay encodes the values
AYear and
ADayOfYear
to a date value and returns this value.
For an example, see DecodeDateDay.
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.
