GT2/Ejectable/node_modules/dayjs/esm/plugin/toObject/index.js
2021-08-16 00:14:59 +00:00

15 lines
No EOL
288 B
JavaScript

export default (function (o, c) {
var proto = c.prototype;
proto.toObject = function () {
return {
years: this.$y,
months: this.$M,
date: this.$D,
hours: this.$H,
minutes: this.$m,
seconds: this.$s,
milliseconds: this.$ms
};
};
});