Changes between Version 3 and Version 4 of Ticket #243, comment 1
- Timestamp:
- 09/18/2021 10:58:43 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #243, comment 1
v3 v4 4 4 Convert a two-digit year to a four-digit year by prepending the appropriate two-digit century 5 5 6 Required Parameter 6 '''Required Parameter:''' 7 7 8 8 '''''two_digit_year''''':: The two-digit year to be converted 9 9 10 Optional Parameters 10 '''Optional Parameters:''' 11 11 12 12 '''''years_before''''':: An integer. The century is selected so that the four-digit year will be within a 100-year block. The first year of the 100-year block is ''years_before'' prior to the ''context_year''. ''years_before'' is intended to be in the range 0 <= ''years_before'' <= 99, however there might be some cases where it is useful to have ''years_before'' < 0 or > 99 (although I can't think of any). If this parameter is not supplied, it defaults to 49 (which means that the 100-year block extends from 49 years before the ''context-year'' through 50 years after the ''context_year'') 13 13 14 14 '''''context_year''''':: A four-digit year that provides the context for the selection of the appropriate century. If ''years_before'' is in the range 0 <= ''years_before'' <= 99, then ''context_year'' will be within the 100-year block. If this parameter is not supplied, it defaults to the current four-digit year. 15 16 '''Pseudo code:''' 15 17 16 18 `start_year = context_year - years_before`
