Skip to content

Commit 73c4438

Browse files
committed
fix cutoff year docs
1 parent 895a749 commit 73c4438

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/settings.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,19 @@ export default class Settings {
130130
}
131131

132132
/**
133-
* Get the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century.
133+
* Get the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.
134134
* @type {number}
135135
*/
136136
static get twoDigitCutoffYear() {
137137
return twoDigitCutoffYear;
138138
}
139139

140140
/**
141-
* Set the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century.
141+
* Set the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.
142142
* @type {number}
143-
* @example Settings.twoDigitCutoffYear = 0 // cut-off year is 0, so all 'yy' are interpreted as current century
144-
* @example Settings.twoDigitCutoffYear = 50 // '49' -> 1949; '50' -> 2050
143+
* @example Settings.twoDigitCutoffYear = 0 // all 'yy' are interpreted as 20th century
144+
* @example Settings.twoDigitCutoffYear = 99 // all 'yy' are interpreted as 21st century
145+
* @example Settings.twoDigitCutoffYear = 50 // '49' -> 2049; '50' -> 1950
145146
* @example Settings.twoDigitCutoffYear = 1950 // interpreted as 50
146147
* @example Settings.twoDigitCutoffYear = 2050 // ALSO interpreted as 50
147148
*/

0 commit comments

Comments
 (0)