UNPKG

@aplus-frontend/ui

Version:

12 lines (11 loc) 532 B
import { ZoneAlias } from '@aplus-frontend/utils'; import { EventValue } from '@aplus-frontend/antdv/es/vc-picker/interface'; import { Dayjs } from 'dayjs'; export declare const formatDay: (d: Dayjs, f: string, begin?: boolean) => number | null; /** * 带timezone的日期格式化生成函数 * @param timezone * @returns */ export declare function formatDayWithTimezone(timezone?: ZoneAlias): (d: Dayjs, f?: string, begin?: boolean) => number | null; export declare const formatValue: (v: EventValue<Dayjs>) => number | null;