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

Function addDays

test/x_scheduled_checkpoints.js:795–798  ·  view source on GitHub ↗
(timestamp, days)

Source from the content-addressed store, hash-verified

793}
794
795function addDays(timestamp, days) {
796 let time = new Date(timestamp * 1000);
797 return time.setUTCDate(time.getUTCDate() + days) / 1000;
798}
799
800function addWeeks(timestamp, weeks) {
801 return addDays(timestamp, weeks * 7);

Callers 2

addWeeksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected