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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #243, comment 1

    v3 v4  
    44Convert a two-digit year to a four-digit year by prepending the appropriate two-digit century
    55
    6 Required Parameter
     6'''Required Parameter:'''
    77
    88'''''two_digit_year''''':: The two-digit year to be converted
    99
    10 Optional Parameters
     10'''Optional Parameters:'''
    1111
    1212'''''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
    1414'''''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:'''
    1517
    1618`start_year = context_year - years_before`