MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / formatUTCDate

Function formatUTCDate

src/utils/format.ts:93–99  ·  view source on GitHub ↗
(date, needSub?: boolean)

Source from the content-addressed store, hash-verified

91};
92
93export const formatUTCDate = (date, needSub?: boolean) => {
94 let finalDate = date;
95 if (needSub) {
96 finalDate = date.subtract(1, "ms");
97 }
98 return `${finalDate.utc().format("MMM D,YYYY h:mmA")} GMT`;
99};
100
101export const formatDate = (
102 date,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected