@tricoteuses/senat
Version:
Handle French Sénat's open data
12 lines (11 loc) • 663 B
TypeScript
export declare function yyyymmddFromPath(xmlFilePath: string): string;
export declare function parseYYYYMMDD(yyyymmdd: string): Date | null;
export declare function frDateToISO(s?: string): string | undefined;
export declare function hourShortToStartTime(hourShort: string | null): string | null;
export declare function epochToParisDateTime(epochSec: number): {
date: string;
startTime: string;
} | null;
export declare function toTargetEpoch(time: string | null, date?: string | null): number | null;
export declare function toFRDate(dateYYYYMMDD: string): string;
export declare function isAmbiguousTimeOriginal(timeOriginal?: string | null): boolean;