You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
760 B
27 lines
760 B
!(function (t, e) {
|
|
if ('object' == typeof exports && 'undefined' != typeof module) {
|
|
module.exports = e();
|
|
} else {
|
|
if ('function' == typeof define && define.amd) {
|
|
define(e);
|
|
} else {
|
|
(t = 'undefined' != typeof globalThis ? globalThis : t || self).dayjs_plugin_toObject = e();
|
|
}
|
|
}
|
|
})(this, function () {
|
|
'use strict';
|
|
|
|
return function (t, e) {
|
|
e.prototype.toObject = function () {
|
|
return {
|
|
years: this.$y,
|
|
months: this.$M,
|
|
date: this.$D,
|
|
hours: this.$H,
|
|
minutes: this.$m,
|
|
seconds: this.$s,
|
|
milliseconds: this.$ms
|
|
};
|
|
};
|
|
};
|
|
});
|
|
|