MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / formatFullDate

Function formatFullDate

src/components/CronJobCard.tsx:115–120  ·  view source on GitHub ↗
(dateString: string)

Source from the content-addressed store, hash-verified

113}
114
115function formatFullDate(dateString: string): string {
116 return new Intl.DateTimeFormat("zh-CN", {
117 dateStyle: "medium",
118 timeStyle: "short",
119 }).format(new Date(dateString));
120}
121
122function formatRelativeTime(dateString: string): string {
123 const diffMs = new Date(dateString).getTime() - Date.now();

Callers 1

getHealthMetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected