MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / formatTimePast

Function formatTimePast

app/src/utils/dayjs.ts:12–13  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

10dayjs.extend(utc);
11
12export const formatTimePast = (date: Date) =>
13 dayjs.duration(dayjs(date).diff(dayjs())).humanize(true);
14
15export const formatDateForPicker = (date: number) =>
16 dayjs(new Date(date)).format("YYYY-MM-DD HH:mm");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected