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

Function getDaysInFebruary

test/x_scheduled_checkpoints.js:583–591  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

581 });
582
583 function getDaysInFebruary() {
584 let days;
585 if ((startDate.getUTCFullYear() + 1) % 4 === 0) {
586 days = 29;
587 } else {
588 days = 28;
589 }
590 return days;
591 }
592
593 function getEndOfFebruary(startTime, days) {
594 return setDate(addYears(startTime, 1), 1, days); //addMonths(startTime, interval * 2)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected