You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/settings.js
+5-4
Original file line number
Diff line number
Diff line change
@@ -130,18 +130,19 @@ export default class Settings {
130
130
}
131
131
132
132
/**
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.
134
134
* @type {number}
135
135
*/
136
136
staticgettwoDigitCutoffYear(){
137
137
returntwoDigitCutoffYear;
138
138
}
139
139
140
140
/**
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.
142
142
* @type {number}
143
-
* @example Settings.twoDigitCutoffYear = 0 // cut-off year is 0, so all 'yy' are interpreted as current century
0 commit comments