(value: DateLike)
| 32 | } |
| 33 | |
| 34 | export 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 | |
| 41 | function formatAbsoluteDate(date: Dayjs, now: Dayjs): string { |
| 42 | return date.isSame(now, 'year') ? date.format('MM月DD日') : date.format('YYYY年MM月DD日') |
no test coverage detected