MCPcopy Create free account
hub / github.com/experdot/pointer / formatLongDateTime

Function formatLongDateTime

src/renderer/src/utils/dateTime.ts:34–39  ·  view source on GitHub ↗
(value: DateLike)

Source from the content-addressed store, hash-verified

32}
33
34export function formatLongDateTime(value: DateLike): string {
35 const date = parseDateLike(value)
36 if (!date) return ''
37
38 return date.format('YYYY年MM月DD日 dddd HH:mm:ss')
39}
40
41function formatAbsoluteDate(date: Dayjs, now: Dayjs): string {
42 return date.isSame(now, 'year') ? date.format('MM月DD日') : date.format('YYYY年MM月DD日')

Callers 1

DateTimeTextFunction · 0.90

Calls 1

parseDateLikeFunction · 0.85

Tested by

no test coverage detected