@fast-china/utils
Version:
Fast 工具库.
42 lines (41 loc) • 850 B
TypeScript
/**
* Date工具类
*/
export declare const dateUtil: {
/**
* 根据当前时间生成问候语
*/
getGreet(): string;
/**
* 时间处理翻译
*/
dateTimeFix(date: string | Date | null | undefined): string;
/**
* 获取默认时间
* @returns [00:00:00, 23:59:59]
*/
getDefaultTime(): Date[];
/**
* 获取简单的日期时间
* @returns xxxx-xx-xx 00:00:00
*/
getSimpleTime(): Date;
/**
* 获取简单的日期时间范围
*/
getSimpleShortcuts(): {
text: string;
value: () => Date;
}[];
/**
* 获取日期范围
*/
getShortcuts(): {
text: string;
value: () => Date[];
}[];
/**
* 判断传入的时间是否大于当前时间
*/
getDisabledDate(time: Date): boolean;
};