UNPKG

react-data-entry

Version:
42 lines (41 loc) 1.65 kB
import "dayjs/locale/vi"; export declare const showTimeStart: (createAt: string) => string; export declare function returnFirstDayOfTheMonth(dateInput?: string | Date): string; type DateFormat = "YYYYMM" | "DDMMYY" | "YYYYMMDD" | "DDMMYYYYvsHHMM" | "DDMM" | "YYYYMMDDvsHHMM" | "DDMMYYYY" | "HHMM"; export declare function formatDate(date: string | Date, format: DateFormat): string; export declare const formatTime: (time: string) => string; export declare const convertDateTimeToDate: (date_time: string | Date) => string; export declare function getDateRange(value1: number, type1: number, value2: number, type2: number): { min_date: string; max_date: string; }; export declare const getWeekDates: (date: string) => { nameDate: string; date: string; }[]; export declare const SoTime: (currentTime: string, time: string, timeSlot: number) => boolean; type InputData = { date: string; start_time_on_shift1: string | null; end_time_on_shift1: string | null; content_on_shift1: string | null; start_time_off_shift1: string | null; end_time_off_shift1: string | null; content_off_shift1: string | null; start_time_on_shift2: string | null; end_time_on_shift2: string | null; content_on_shift2: string | null; }; type Shift = { start_time: string; end_time: string; content: string; }; type OutputData = { date: string; list_work_shift: Shift[]; list_off_shift: Shift[]; }; export declare function transformDataScheduleWork(input: InputData): OutputData; export declare function calculateTimeDifference(inputTime: Date | string, toTime?: Date | string): string; export {};