dates.ts

Imports the format and formatDistanceToNow functions from the date-fns library and defines functions to format dates and times in different ways.

Functions

  • formatDateTimeFromSeconds
  • formatShortDateTimeFromSeconds
  • formatDateFromSeconds
  • formatLongDateFromSeconds
  • formatDistanceToNowFromSeconds