Node-Red configuration
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.

index.js 288B

123456789101112131415
  1. export default (function (o, c) {
  2. var proto = c.prototype;
  3. proto.toObject = function () {
  4. return {
  5. years: this.$y,
  6. months: this.$M,
  7. date: this.$D,
  8. hours: this.$H,
  9. minutes: this.$m,
  10. seconds: this.$s,
  11. milliseconds: this.$ms
  12. };
  13. };
  14. });