1922 // that the year value is to be treated literally, without any |
1924 // that the year value is to be treated literally, without any |
1923 // two-digit year adjustments (e.g., from "01" to 2001). Otherwise |
1925 // two-digit year adjustments (e.g., from "01" to 2001). Otherwise |
1924 // we made adjustments to place the 2-digit year in the proper |
1926 // we made adjustments to place the 2-digit year in the proper |
1925 // century, for parsed strings from "00" to "99". Any other string |
1927 // century, for parsed strings from "00" to "99". Any other string |
1926 // is treated literally: "2250", "-1", "1", "002". |
1928 // is treated literally: "2250", "-1", "1", "002". |
1927 if (count <= 2 && (pos.index - start) == 2 |
1929 if (count <= 2 && (pos.index - actualStart) == 2 |
1928 && Character.isDigit(text.charAt(start)) |
1930 && Character.isDigit(text.charAt(actualStart)) |
1929 && Character.isDigit(text.charAt(start+1))) { |
1931 && Character.isDigit(text.charAt(actualStart + 1))) { |
1930 // Assume for example that the defaultCenturyStart is 6/18/1903. |
1932 // Assume for example that the defaultCenturyStart is 6/18/1903. |
1931 // This means that two-digit years will be forced into the range |
1933 // This means that two-digit years will be forced into the range |
1932 // 6/18/1903 to 6/17/2003. As a result, years 00, 01, and 02 |
1934 // 6/18/1903 to 6/17/2003. As a result, years 00, 01, and 02 |
1933 // correspond to 2000, 2001, and 2002. Years 04, 05, etc. correspond |
1935 // correspond to 2000, 2001, and 2002. Years 04, 05, etc. correspond |
1934 // to 1904, 1905, etc. If the year is 03, then it is 2003 if the |
1936 // to 1904, 1905, etc. If the year is 03, then it is 2003 if the |