newgrounds-api
Version:
A simple Node.js library for interacting with the Newgrounds data.
14 lines (13 loc) • 806 B
TypeScript
/**
* Converts a date string in MM/DD/YY format to an object of day, month, and 4-digit year.
* Handles the two-digit year by assuming the 21st century (20xx) for years 00-69,
* and the 20th century (19xx) for years 70-99.
*
* @param {string} dateString The date string in "MM/DD/YY" format (e.g., "11/21/22").
* @returns {{day: number, month: number, year: number} | null} An object with day, month (1-indexed),
* and full 4-digit year, or null if the date string is invalid.
*/
declare function convertMMDDYYToDateObject(dateString: string): object | null;
declare function convertTimeFormatToSeconds(timeString: string): number | null;
declare function convertHtmlToMarkdown(htmlString: string): string;
export { convertMMDDYYToDateObject, convertTimeFormatToSeconds, convertHtmlToMarkdown };