MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / formatDateNum

Function formatDateNum

tech-study.js:2357–2359  ·  view source on GitHub ↗

* @description 格式化日期时间数字 * @param num * @returns

(num)

Source from the content-addressed store, hash-verified

2355 * @returns
2356 */
2357function formatDateNum(num) {
2358 return num < 10 ? `0${num}` : `${num}`;
2359}
2360/**
2361 * @description 格式化日期时间
2362 * @param time

Callers 2

TimeInputFunction · 0.70
SettingsPanelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected