type AnyDateTime = number | Date | string; /** * Convert a number (epoch seconds or milliseconds), string (parseable * date/time or epoch seconds or milliseconds), or Date object (no conversion) * into a Date object. */ declare function toDate(ts: AnyDateTime): Date; /** * Returns a date in yyyy-MM format. E.g. '2000-01'. * * @param dt Specify a date object or default to the current date. * @param separator Defaults to '-'. */ declare function yyyyMm(dt?: Date, separator?: string): string; /** * Returns a date in yyyy-MM-dd format. E.g. '2000-01-02'. * * @param dt Specify a date object or default to the current date. * @param separator Defaults to '-'. */ declare function yyyyMmDd(dt?: Date, separator?: string): string; /** * Returns a date in hh:mm format. E.g. '01:02'. * * @param dt Specify a date object or default to the current date/time. * @param separator Defaults to ':'. */ declare function hhMm(dt?: Date, separator?: string): string; /** * Returns a date in hh:mm:ss format. E.g. '01:02:03'. * * @param dt Specify a date object or default to the current date/time. * @param separator Defaults to ':'. */ declare function hhMmSs(dt?: Date, separator?: string): string; /** * Returns a date in hh:mm:ss.SSS format. E.g. '01:02:03.004'. * * @param dt Specify a date object or default to the current date/time. * @param timeSeparator Separator for hh/mm/ss. Defaults to ':'. * @param msSeparator Separator before SSS. Defaults to '.'. */ declare function hhMmSsMs(dt?: Date, timeSeparator?: string, msSeparator?: string): string; /** * Returns the timezone string for the given date. E.g. '+8', '-3.5'. * Returns 'Z' for UTC. * * @param dt Specify a date object or default to the current date/time. */ declare function tzShort(dt?: Date): string; /** * Returns the long month name, zero-indexed. E.g. 0 for 'January'. * * @param month Zero-indexed month. * @param locales Specify the locale, e.g. 'en-US', new Intl.Locale("en-US"). */ declare function getLongMonthNameZeroIndexed(month: number, locales?: Intl.LocalesArgument): string; /** * Returns the long month name, one-indexed. E.g. 1 for 'January'. * * @param month One-indexed month. * @param locales Specify the locale, e.g. 'en-US', new Intl.Locale("en-US"). */ declare function getLongMonthNameOneIndexed(month: number, locales?: Intl.LocalesArgument): string; /** * Returns the short month name, zero-indexed. E.g. 0 for 'Jan'. * * @param month Zero-indexed month. * @param locales Specify the locale, e.g. 'en-US', new Intl.Locale("en-US"). */ declare function getShortMonthNameZeroIndexed(month: number, locales?: Intl.LocalesArgument): string; /** * Returns the short month name, one-indexed. E.g. 1 for 'Jan'. * * @param month One-indexed month. * @param locales Specify the locale, e.g. 'en-US', new Intl.Locale("en-US"). */ declare function getShortMonthNameOneIndexed(month: number, locales?: Intl.LocalesArgument): string; /** * Returns a human-readable string date/time like '2025-01-01 22:31:16Z'. * Excludes the milliseconds assuming it is not necessary for display. */ declare function getDisplayDateTime(ts: AnyDateTime): string; export { type AnyDateTime, getDisplayDateTime, getLongMonthNameOneIndexed, getLongMonthNameZeroIndexed, getShortMonthNameOneIndexed, getShortMonthNameZeroIndexed, hhMm, hhMmSs, hhMmSsMs, toDate, tzShort, yyyyMm, yyyyMmDd };