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