@acrool/js-utils
Version:
Common javascript utils methods for project development
20 lines (19 loc) • 500 B
TypeScript
import dayjs from 'dayjs';
import { TDayList } from './types';
export declare const dateUtils: {
today: dayjs.Dayjs;
thisWeek: dayjs.Dayjs;
lastWeek: dayjs.Dayjs;
twoWeekAgo: dayjs.Dayjs;
thisMonth: dayjs.Dayjs;
halfYearAgo: dayjs.Dayjs;
};
export declare enum EDayKey {
today = "today",
yesterday = "yesterday",
thisWeek = "thisWeek",
lastWeek = "lastWeek",
twoWeekAgo = "twoWeekAgo",
thisMonth = "thisMonth"
}
export declare const dayList: TDayList;