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

Function now

JavaScript/Surge/Timecard.js:64–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63//获取最接近的日期
64function now() {
65 for (var i = 1; i <= Object.getOwnPropertyNames(tlist).length; i++) {
66 if (Number(dateDiff(tnowf, tlist[i.toString()][1])) >= 0) {
67 //console.log("最近的日期是:" + tlist[i.toString()][0]);
68 //console.log("列表长度:" + Object.getOwnPropertyNames(tlist).length);
69 //console.log("时间差距:" + Number(dateDiff(tnowf, tlist[i.toString()][1])));
70 return i;
71 }
72 }
73}
74
75//如果是0天,发送emoji;
76let nowlist = now();

Callers 2

Timecard.jsFile · 0.85
Timecard.jsFile · 0.85

Calls 1

dateDiffFunction · 0.85

Tested by

no test coverage detected