This commit is contained in:
2025-11-11 00:04:55 -06:00
parent a76ad41fde
commit 40538eddfd
6405 changed files with 1289756 additions and 0 deletions

View File

@ -0,0 +1,21 @@
/**
* @preserve date-and-time.js plugin
* @preserve two-digit-year
*/
var plugin = function (date) {
var name = 'two-digit-year';
date.plugin(name, {
parser: {
YY: function (str) {
var result = this.exec(/^\d\d/, str);
result.value += result.value < 70 ? 2000 : 1900;
return result;
}
}
});
return name;
};
export { plugin as default };