MCPcopy Index your code
hub / github.com/winfunc/opcode / formatTime

Function formatTime

src/lib/date-utils.ts:79–85  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

77
78// Helper functions
79function formatTime(date: Date): string {
80 return date.toLocaleTimeString('en-US', {
81 hour: 'numeric',
82 minute: '2-digit',
83 hour12: true
84 });
85}
86
87function isToday(date: Date): boolean {
88 const today = new Date();

Callers 1

formatUnixTimestampFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected