JCL Help:EncodeDate
JCL Help: EncodeDate Function
Search in JCL Help
Search in all projects
Summary
Works like EncodeDate in SysUtils, but can do negative years and years > 9999.
Pascal
function EncodeDate(const Year: Integer; Month: Word; Day: Word): TDateTime;
Parameters
Parameters | Description |
const Year: Integer | Year of date to convert. |
Month: Word | Month of date to convert. |
Day: Word | Day of date to convert |
Return Value
The date converted to TDateTime.
Description
Works like EncodeDate in SysUtils, but can do negative years and years > 9999.
See Also
About
Unit
Donator
Michael Schnell
Notes
With JCLDate negative years and dates > year 9999 are valid in nearly all functions handling TDateTime. As people did not use 12 Months before year 0001, and supposedly will not after 9999, we just use the solar year and a month = 1/12 of a solar year in such years. Year 0 does not exist. To activate this function JCLDateTime must appear after SysUtils in the uses clause or it must be explicitly denoted as JCLDateTime.EncodeDate.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page