(dateString: string)
| 14 | |
| 15 | // created by chatgpt |
| 16 | export function formatDateString(dateString: string) { |
| 17 | const options: Intl.DateTimeFormatOptions = { |
| 18 | year: "numeric", |
| 19 | month: "short", |
| 20 | day: "numeric", |
| 21 | }; |
| 22 | |
| 23 | const date = new Date(dateString); |
| 24 | const formattedDate = date.toLocaleDateString(undefined, options); |
| 25 | |
| 26 | const time = date.toLocaleTimeString([], { |
| 27 | hour: "numeric", |
| 28 | minute: "2-digit", |
| 29 | }); |
| 30 | |
| 31 | return `${time} - ${formattedDate}`; |
| 32 | } |
| 33 | |
| 34 | // created by chatgpt |
| 35 | export function formatThreadCount(count: number): string { |
no outgoing calls
no test coverage detected
searching dependent graphs…