Initial commit

This commit is contained in:
talksik
2021-12-29 01:57:42 -08:00
commit ce39a60b42
4634 changed files with 997667 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
/**
* @preserve date-and-time.js plugin
* @preserve microsecond
*/
var plugin = function (date) {
var name = 'microsecond';
date.plugin(name, {
parser: {
SSSSSS: function (str) {
var result = this.exec(/^\d{1,6}/, str);
result.value = result.value / 1000 | 0;
return result;
},
SSSSS: function (str) {
var result = this.exec(/^\d{1,5}/, str);
result.value = result.value / 100 | 0;
return result;
},
SSSS: function (str) {
var result = this.exec(/^\d{1,4}/, str);
result.value = result.value / 10 | 0;
return result;
}
}
});
return name;
};
export { plugin as default };