MCPcopy Create free account
hub / github.com/TributePaulWalker/Profiles / getRmainingDays

Function getRmainingDays

JavaScript/Surge/Sub_info_lite.js:115–121  ·  view source on GitHub ↗
(resetDay)

Source from the content-addressed store, hash-verified

113}
114
115function getRmainingDays(resetDay) {
116 if (!resetDay) return 0;
117 let daysInMonth = new Date(year, month + 1, 0).getDate();
118 if (resetDay > today) daysInMonth = 0;
119
120 return daysInMonth - today + resetDay;
121}
122
123function bytesToSize(bytes) {
124 if (bytes === 0) return "0B";

Callers 1

Sub_info_lite.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected