MCPcopy Create free account
hub / github.com/ArrowM/Queue-Bot / formatTimestamp

Function formatTimestamp

src/utils/string.utils.ts:213–217  ·  view source on GitHub ↗
(joinTime: bigint, timestampType: TimestampType)

Source from the content-addressed store, hash-verified

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

Callers 1

memberMentionFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected