MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / seconds

Method seconds

modules/drivers/rtc/rtc.js:75–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 }
74
75 get seconds() {
76 let date = this._getDate();
77 let when = new Date(date.year, date.month, date.date, date.hours, date.minutes, date.seconds, 0);
78 return when.getTime() / 1000;
79 }
80
81 set seconds(secs) {
82 let d = new Date(secs * 1000);

Callers

nothing calls this directly

Calls 3

_getDateMethod · 0.95
_setDateMethod · 0.95
getTimeMethod · 0.80

Tested by

no test coverage detected