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

Method signRange

wxapp/ztkd.js:175–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173 }
174
175 signRange() {
176 const today = new Date();
177 const start = new Date(today);
178 const end = new Date(today);
179 start.setDate(today.getDate() - 3);
180 end.setDate(today.getDate() + 3);
181 return {
182 startDate: `${formatDate(start)} 00:00:00`,
183 endDate: `${formatDate(end)} 23:59:59`,
184 todayDate: formatDate(today),
185 };
186 }
187
188 async querySignInfo(prefix = "签到信息") {
189 const range = this.signRange();

Callers 1

querySignInfoMethod · 0.95

Calls 1

formatDateFunction · 0.70

Tested by

no test coverage detected