xe-utils-es
Version:
JavaScript 函数库、工具类
34 lines (33 loc) • 1.28 kB
TypeScript
import getWhatYear from './getWhatYear';
import getWhatQuarter from './getWhatQuarter';
import getWhatMonth from './getWhatMonth';
import getWhatDay from './getWhatDay';
import toStringDate from './toStringDate';
import toDateString from './toDateString';
import isValidDate from './isValidDate';
import isDateSame from './isDateSame';
import getWhatWeek from './getWhatWeek';
import getYearDay from './getYearDay';
import getDayOfYear from './getDayOfYear';
import getDayOfMonth from './getDayOfMonth';
import getDateDiff from './getDateDiff';
declare const dateExports: {
now: () => number;
timestamp: (str: any, format: any) => any;
isValidDate: typeof isValidDate;
isDateSame: typeof isDateSame;
toStringDate: typeof toStringDate;
toDateString: typeof toDateString;
getWhatYear: typeof getWhatYear;
getWhatQuarter: typeof getWhatQuarter;
getWhatMonth: typeof getWhatMonth;
getWhatWeek: typeof getWhatWeek;
getWhatDay: typeof getWhatDay;
getYearDay: typeof getYearDay;
getYearWeek: (date: any, firstDay: any) => number;
getMonthWeek: (date: any, firstDay: any) => number;
getDayOfYear: typeof getDayOfYear;
getDayOfMonth: typeof getDayOfMonth;
getDateDiff: typeof getDateDiff;
};
export default dateExports;