MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / getCurrentMonthDate

Function getCurrentMonthDate

scripts/version-utils.mjs:17–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16// 获取当前月份日期
17export function getCurrentMonthDate() {
18 const now = new Date()
19 const month = String(now.getMonth() + 1).padStart(2, '0')
20 const day = String(now.getDate()).padStart(2, '0')
21 return `${month}${day}`
22}
23
24// 从package.json读取基础版本号
25export function getBaseVersion() {

Callers 1

getDevVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected