(timestamp?: Timestamp)
| 56 | } |
| 57 | |
| 58 | export const getTimestampMs = (timestamp?: Timestamp): number => { |
| 59 | if (!timestamp) return 0; |
| 60 | return Number(timestamp.seconds) * 1000 + timestamp.nanos / 1000000; |
| 61 | }; |
| 62 | |
| 63 | export const formatTime = (timestamp?: Timestamp): string => { |
| 64 | if (!timestamp) return "--:--:--.---"; |
no outgoing calls
no test coverage detected