Changes between Version 2 and Version 3 of Ticket #243, comment 1
- Timestamp:
- 09/18/2021 10:56:04 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #243, comment 1
v2 v3 6 6 Required Parameter 7 7 8 '' two_digit_year'':: The two-digit year to be converted8 '''''two_digit_year''''':: The two-digit year to be converted 9 9 10 10 Optional Parameters 11 11 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'')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 '' 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.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 15 16 16 `start_year = context_year - years_before` 17 /* If the language allows arithmetic with character variables and allows the result to replace one of the operands, ''start_year'' need not be a separate variable, it could be the modified context_year */17 /* We don't have any more need for ''context_year'', so if the language allows arithmetic with character variables and allows the result to replace one of the operands, ''start_year'' need not be a separate variable, it could be the modified context_year */ 18 18 `yy = the right two digits of start_year` 19 19 /* If the language allows numeric comparisons with part of a character variable, ''yy'' need not be a separate variable, it could be the right two digits of ''start_year'' */
