UNPKG

@hv-kit/hexpress

Version:

facilitates typescript backend development with express

18 lines 1.24 kB
export declare function GetCustomTime(initialDateStr: string | Date | undefined, lang?: 'fr' | 'en', format?: string | undefined): any; export declare function GetCustomTime2(initialDateStr: string | Date | undefined, lang?: 'fr' | 'en', format?: string | undefined, showTime?: boolean, simplified?: boolean, simplifiedLength?: number): string; export declare function GetCurrentDate(string?: boolean, format?: string): Date | string | undefined; export declare function DateToString(value: Date, format?: string): string | undefined; export declare function StringToDate(value: string, format?: string): Date; export declare function StringToDate2(value: string): Date; export declare function DateDiff(date1: Date, date2: Date, showType?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year' | 'century'): number | undefined; declare const _default: { GetCustomTime: typeof GetCustomTime; GetCustomTime2: typeof GetCustomTime2; GetCurrentDate: typeof GetCurrentDate; DateToString: typeof DateToString; StringToDate: typeof StringToDate; StringToDate2: typeof StringToDate2; DateDiff: typeof DateDiff; }; export default _default; //# sourceMappingURL=date.d.ts.map