(date: Date)
| 111 | * @returns A formatted time string in the format "h:mm A" |
| 112 | */ |
| 113 | export function formatTime(date: Date): string { |
| 114 | return date.toLocaleString('en-US', { |
| 115 | hour: 'numeric', |
| 116 | minute: '2-digit', |
| 117 | hour12: true, |
| 118 | }) |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Format a time with seconds and timezone |
no outgoing calls
no test coverage detected