MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / monthRange

Function monthRange

wxapp/ykb_all.js:167–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165}
166
167function monthRange() {
168 const now = new Date();
169 const firstDay = new Date(now.getFullYear(), now.getMonth(), 1).getTime();
170 const nextMonth = new Date(now.getFullYear(), now.getMonth() + 1, 1).getTime();
171 return {
172 BeginDate: firstDay - 15 * 24 * 60 * 60 * 1000,
173 EndDate: nextMonth - 1000 + 15 * 24 * 60 * 60 * 1000,
174 };
175}
176
177function normalizeStatus(status = "") {
178 const map = {

Callers 1

tryMemberCheckInMethod · 0.85

Calls 1

getTimeMethod · 0.80

Tested by

no test coverage detected