MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / parseDiscordSentAt

Function parseDiscordSentAt

packages/serializers/src/sentAt.ts:5–7  ·  view source on GitHub ↗
(ts: string)

Source from the content-addressed store, hash-verified

3}
4
5export function parseDiscordSentAt(ts: string) {
6 return new Date(ts).getTime();
7}
8
9export const tsToSentAt = (ts: string) => {
10 return new Date(parseFloat(ts) * 1000);

Callers 3

sentAt.test.tsFile · 0.90
parseThreadFromMessageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected