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

Function formatTime

JavaScript/Surge/Sub_info_lite.js:131–137  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

129}
130
131function formatTime(time) {
132 let dateObj = new Date(time);
133 let year = dateObj.getFullYear();
134 let month = dateObj.getMonth() + 1;
135 let day = dateObj.getDate();
136 return year + "年" + month + "月" + day + "日";
137}
138
139function sendNotification(usageRate, expire, infoList) {
140 if (!args.alert) return;

Callers 1

Sub_info_lite.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected