MCPcopy
hub / github.com/msgbyte/tianji / formatDate

Function formatDate

src/client/utils/date.ts:56–58  ·  view source on GitHub ↗
(val: dayjs.ConfigType)

Source from the content-addressed store, hash-verified

54}
55
56export function formatDate(val: dayjs.ConfigType) {
57 return dayjs(val).format('YYYY-MM-DD HH:mm:ss');
58}
59
60export function formatDateWithUnit(val: dayjs.ConfigType, unit: DateUnit) {
61 if (unit === 'minute') {

Callers 4

getDateArrayFunction · 0.70
formatDateWithUnitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected