UNPKG

@geniucode/common-utils

Version:

Common utils

27 lines (26 loc) 775 B
export declare const daysMapping: () => Record<number, string>; export declare const daysMappingRev: () => Record<string, number>; export declare const getShortISODate: (dayDate?: Date) => string; export declare const getWeekNumber: (currentDate?: any) => number; export declare const getDayInWeek: (dayDate?: Date) => string; export declare const getXDaysAgo: (x?: number) => Date; export declare const chartFilterOptions: ({ label: string; key: { label: string; value: Date; }; } | { label: string; key: { label: string; value: number; }; } | { label: string; key: { label: string; value: string; }; })[]; export declare const getDatesDiffInSeconds: (date1: Date, date2?: Date) => number;