UNPKG

@hopeio/utils

Version:
11 lines (10 loc) 662 B
import { default as dayjs, Dayjs } from 'dayjs'; export declare const toDayjs: (value: string) => dayjs.Dayjs; export declare const dateToDayjs: (value: string) => dayjs.Dayjs; export declare const dateTimeToDayjs: (value: string) => dayjs.Dayjs; export declare const dateFmt: (value: string, format: string) => dayjs.Dayjs; export declare const dateFmtDate: (value: Date | number) => string; export declare const dateFmtDateTime: (value: Date | number) => string; export declare const dayjsDateFmtDate: (value: Dayjs) => string; export declare const dayjsDateFmtDateTime: (value: Dayjs) => string; export declare function timestamp(dateString: string): number;