Files
dify/web/utils/time.ts
2024-12-09 11:46:18 +08:00

6 lines
163 B
TypeScript

import dayjs, { type ConfigType } from 'dayjs'
export const isAfter = (date: ConfigType, compare: ConfigType) => {
return dayjs(date).isAfter(dayjs(compare))
}