eight
2024-12-18 8ce35ee72e52f51f93e61d2dec6084c3cfd397b6
src/utils/dateUtil.ts
@@ -33,6 +33,10 @@
  return today.diff(birthday, 'year');
}
export function calculateHours( start: Date, end: Date) {
  return  dayjs(end).diff(dayjs(start), 'hour');
}
export function isCurrentDay( _date: Date) {
  const today = dayjs(new Date());
  return today.isSame( dayjs(_date), 'day' )