MCPcopy Create free account
hub / github.com/dailydotdev/apps / getFullNotificationDate

Function getFullNotificationDate

packages/shared/src/lib/dateFormat.ts:73–75  ·  view source on GitHub ↗
(
  value: Date | number | string,
)

Source from the content-addressed store, hash-verified

71// Full, readable date for the notification timestamp tooltip — e.g.
72// "15 April 2024 at 14:30".
73export const getFullNotificationDate = (
74 value: Date | number | string,
75): string => format(new Date(value), "d MMMM yyyy 'at' HH:mm");
76
77export const publishTimeLiveTimer: typeof publishTimeRelativeShort = (
78 value,

Callers 1

NotificationItemFunction · 0.90

Calls 1

formatFunction · 0.85

Tested by

no test coverage detected