wwf
2025-11-18 77950e48c76f4a3b29d01831d43039caba29888a
1
2
3
4
5
6
7
8
9
10
11
12
import dayjs, { type ConfigType } from 'dayjs'
import utc from 'dayjs/plugin/utc'
 
dayjs.extend(utc)
 
export const isAfter = (date: ConfigType, compare: ConfigType) => {
  return dayjs(date).isAfter(dayjs(compare))
}
 
export const formatTime = ({ date, dateFormat }: { date: ConfigType; dateFormat: string }) => {
  return dayjs(date).format(dateFormat)
}