MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / getNow

Function getNow

scripts/douyin_batchDownload.js:84–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83 const formatter = UfsGlobal.Utils.getNumberFormatter("compactShort");
84 function getNow() {
85 // return year + month + day + hour + minute + second
86 const day = new Date();
87 return (
88 [day.getFullYear(), day.getMonth() + 1, day.getDate()].join("-") +
89 "_" +
90 [day.getHours(), day.getMinutes(), day.getSeconds()].join("-")
91 );
92 }
93
94 const app = new Vue({
95 template: /*html*/ `

Callers 2

downloadVideoFunction · 0.70
downloadAudioFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected