Files
eufy-security-client-dz/node_modules/date-and-time/esm/plugin/two-digit-year.mjs
2025-11-11 00:04:55 -06:00

22 lines
447 B
JavaScript

/**
* @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 };