MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / addYears

Function addYears

test/x_scheduled_checkpoints.js:809–812  ·  view source on GitHub ↗
(timestamp, years)

Source from the content-addressed store, hash-verified

807}
808
809function addYears(timestamp, years) {
810 let time = new Date(timestamp * 1000);
811 return time.setUTCFullYear(time.getUTCFullYear() + years) / 1000;
812}
813
814function checkScheduleLog(log, name, startTime, interval, timeUnit) {
815 assert.equal(web3.utils.toAscii(log.args._name).replace(/\u0000/g, ""), web3.utils.toAscii(name));

Callers 2

getEndOfFebruaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected