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

Method seconds

modules/drivers/rtc/rv3028.js:48–58  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

46 }
47
48 set seconds(v) {
49 let buf = new ArrayBuffer(4*1);
50 let bytes = new Uint8Array(buf);
51 bytes[0] = v & 0xff;
52 bytes[1] = (v & 0xff00) >> 8;
53 bytes[2] = (v & 0xff0000) >> 16;
54 bytes[3] = (v & 0xff000000) >> 24;
55 super.writeBlock(RV3028_UNIX, buf);
56 this.enabled = true;
57 return this.unixTime;
58 }
59
60 get seconds() {
61 let curTime = this._get_seconds();

Callers

nothing calls this directly

Calls 2

_get_secondsMethod · 0.95
writeBlockMethod · 0.45

Tested by

no test coverage detected