MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / lastWeek

Function lastWeek

packages/utilities/src/date.ts:35–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35export function lastWeek() {
36 return sub(new Date(), { days: 7 });
37}
38
39export function formatDistance(date: string): string {
40 return utilFormatDistance(new Date(), new Date(date));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected