MCPcopy Create free account
hub / github.com/ampproject/amphtml / constructor

Method constructor

third_party/subscriptions-project/swg.js:2502–2510  ·  view source on GitHub ↗

* @param {!Array<*>=} data * @param {boolean=} includesLabel

(data = [], includesLabel = true)

Source from the content-addressed store, hash-verified

2500 * @param {boolean=} includesLabel
2501 */
2502 constructor(data = [], includesLabel = true) {
2503 const base = includesLabel ? 1 : 0;
2504
2505 /** @private {?number} */
2506 this.seconds_ = data[base] == null ? null : data[base];
2507
2508 /** @private {?number} */
2509 this.nanos_ = data[1 + base] == null ? null : data[1 + base];
2510 }
2511
2512 /**
2513 * @return {?number}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected