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

Function parseDate

lib/utils/parse-date.ts:201–201  ·  view source on GitHub ↗
(date: string | number | Date, ...options: OptionType[])

Source from the content-addressed store, hash-verified

199 * @returns A native JavaScript Date object.
200 */
201export const parseDate = (date: string | number | Date, ...options: OptionType[]): Date => dayjs(date, ...options).toDate();
202
203/**
204 * Processes a date string composed of a semantic keyword and an optional time component.

Callers 15

convertDateToISO8601Function · 0.90
PageParsersClass · 0.90
handlerFunction · 0.90
parseListFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90
handlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected