UNPKG

navidev-date-and-time

Version:
37 lines 1.02 kB
type parserReturn = { value: number; length: number; }; interface DateTimeParserInterface { [key: string]: (d: string) => parserReturn; } /** * Busca el valor en un array * @param array | Array de valores * @param str | String a buscar * @returns | Estructura con el resultado */ export declare const find: (array: string[], str: string) => parserReturn; export default class DateTimeParsers { /** * Busca el valor en un array * @param array | Array de valores * @param str | String a buscar * @returns | Estructura con el resultado */ find: (array: string[], str: string) => parserReturn; /** * Devuelve el parsers de fecha y hora * @returns Objeto con las funciones de parseo */ parser(): DateTimeParserInterface; /** * Devuelve la hora en formato 24 horas * @param h Hora * @param a 24/12 hora * @returns Hora en formato 24h */ h12(h: number, a: number): number; } export {}; //# sourceMappingURL=parser.d.ts.map