(date: Date)
| 4 | .pop(); |
| 5 | |
| 6 | export const formatTimestamp = (date: Date): string => |
| 7 | `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date |
| 8 | .getDate() |
| 9 | .toString() |
| 10 | .padStart(2, '0')} ${date |
| 11 | .getHours() |
| 12 | .toString() |
| 13 | .padStart(2, '0')}:${date |
| 14 | .getMinutes() |
| 15 | .toString() |
| 16 | .padStart(2, '0')}:${date |
| 17 | .getSeconds() |
| 18 | .toString() |
| 19 | .padStart(2, '0')}.${date |
| 20 | .getMilliseconds() |
| 21 | .toString() |
| 22 | .padStart(3, '0')} ${timezone}`; |
| 23 | |
| 24 | export const timestamp = (): string => formatTimestamp(new Date()); |
no test coverage detected