(joinTime: bigint, timestampType: TimestampType)
| 211 | ]); |
| 212 | |
| 213 | function formatTimestamp(joinTime: bigint, timestampType: TimestampType) { |
| 214 | return (timestampType !== TimestampType.Off) |
| 215 | ? time(new Date(Number(joinTime)), timestampToStyle.get(timestampType)) |
| 216 | : ""; |
| 217 | } |
| 218 | |
| 219 | function stripIdSuffix(input: string): string { |
| 220 | return input.replace(/Id$/, ""); |