mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-21 17:32:41 +00:00
15 lines
288 B
JavaScript
15 lines
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
|
|
};
|
|
};
|
|
}); |