MCPcopy Create free account
hub / github.com/PIKACHUIM/CFWorkerACME / fmtDate

Function fmtDate

frontend/src/utils/format.ts:24–26  ·  view source on GitHub ↗
(ts: number | string | Date | undefined | null)

Source from the content-addressed store, hash-verified

22 * 仅格式化日期(2025-05-08)
23 */
24export function fmtDate(ts: number | string | Date | undefined | null): string {
25 return fmtDateTime(ts, 'YYYY-MM-DD');
26}
27
28/**
29 * 相对时间(2 小时前)

Callers 1

OrderRowFunction · 0.90

Calls 1

fmtDateTimeFunction · 0.85

Tested by

no test coverage detected