MCPcopy Create free account
hub / github.com/DIYgod/RSSHub / toJavaScriptTimestamp

Function toJavaScriptTimestamp

lib/routes/chuapp/chuapp.ts:87–89  ·  view source on GitHub ↗
(x: string | number | null | undefined)

Source from the content-addressed store, hash-verified

85}
86
87function toJavaScriptTimestamp(x: string | number | null | undefined): number {
88 return x ? Number(x) * 1000 : 0;
89}
90
91async function handler(ctx: Context): Promise<Data | null> {
92 const { category = 'night' } = ctx.req.param();

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected