UNPKG

@tricoteuses/assemblee

Version:

Retrieve, clean up & handle French Assemblée nationale's open data

13 lines (12 loc) 998 B
export declare const existingDateToJson: (key?: any) => string; export declare const patchedDateToJson: (this: Date) => string; export declare const frenchDateFormat: Intl.DateTimeFormat; export declare const frenchDateSameYearShortFormat: Intl.DateTimeFormat; export declare const frenchTimeFormat: Intl.DateTimeFormat; export declare function dateFromNullableDateOrIsoString(date: Date | string | undefined | null, defaultValue: Date | undefined | null): Date | undefined | null; export declare function dateFromYearMonthDayTimezoneString(dateString: string): Date; export declare function displayDateFromLocalIsoString(dateString: string): string; export declare function formatRelativeFrenchTime(date: Date, now: Date): string; export declare function frenchDateWithoutDayOfWeekFromDateOrString(dateOrString: Date | string): string; export declare function frenchTimeFromDateOrString(dateOrString: Date | string): string; export declare function localIso8601StringFromDate(date: Date): string;