徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.0 KiB

5 months ago
import { FirstDayOfWeek } from "./getWhatWeek"
export type ToDateStringFormats = {
/**
*
* [null, '第一季度', '第二季度', '第三季度', '第四季度']
*/
q?: string[] | {
1: string
2: string
3: string
4: string
} | ((value: string | number, match: string, date: Date) => string);
/**
*
* ['日', '一', '二', '三', '四', '五', '六']
*/
E?: string[] | {
0: string
1: string
2: string
3: string
4: string
5: string
6: string
} | ((value: string | number, match: string, date: Date) => string);
}
export interface ToDateStringOptions {
/**
*
*/
firstDay?: FirstDayOfWeek;
/**
*
*/
formats?: ToDateStringFormats
}
/**
* []
* @param date //
*/
export declare function toDateString(date: string | Date | number): string;
export declare function toDateString(date: any): string;
/**
* []
* @param date //
* @param format yyyy-MM-dd HH:mm:ss.SSS
*/
export declare function toDateString(date: string | Date | number, format: string | null): string;
export declare function toDateString(date: any, format: string | null): string;
/**
* []
* @param date //
* @param format yyyy-MM-dd HH:mm:ss.SSS
* @param options
*/
export declare function toDateString(date: string | Date | number, format: string | null, options: ToDateStringOptions): string;
export declare function toDateString(date: any, format: string | null, options: ToDateStringOptions): string;
declare module './ctor' {
interface XEUtilsMethods {
toDateString: typeof toDateString;
}
}
export default toDateString