Changes between Version 2 and Version 3 of Ticket #243, comment 1


Ignore:
Timestamp:
09/18/2021 10:56:04 AM (5 years ago)
Author:
David Rosenberg

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #243, comment 1

    v2 v3  
    66Required Parameter
    77
    8 ''two_digit_year'':: The two-digit year to be converted
     8'''''two_digit_year''''':: The two-digit year to be converted
    99
    1010Optional Parameters
    1111
    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'')
    1313
    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.
    1515
    1616`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 */
    1818`yy = the right two digits of start_year`
    1919/* 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'' */