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