JCL Help:MakeYear4Digit
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: MakeYear4Digit Function
Search in JCL Help
Search in all projects
Summary
Converts a 2 digit year into a 4 digit year.
Pascal
function MakeYear4Digit(Year: Integer; WindowsillYear: Integer): Integer;
Parameters
Parameters | Description |
Year: Integer | The 2 digit year to convert. Is asserted to be in the range 0..100 |
WindowsillYear: Integer | windowsill year |
Return Value
The 4 digit year.
Description
"Window" technique for years to translate 2 digits to 4 digits. The window is 100 years wide. The windowsill year is the lower edge of the window. A windowsill year of 1900 is equivalent to putting 1900 before every 2-digit year. If WindowsillYear is 1940, then 40 is interpreted as 1940, 00 as 2000 and 39 as 2039. A common default is 1950.
See Also
About
Unit
Donator
Anthony Steele
Notes
If Year is 100 it is converted to 0 first.
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