11 lines
508 B
TypeScript
11 lines
508 B
TypeScript
declare const ONE_DAY: number;
|
|
declare const formatDate: (date: Date) => string;
|
|
declare const yesterday: (date?: Date) => Date;
|
|
declare const nextday: (date?: Date) => Date;
|
|
declare function daysBetween(date1: Date, date2: Date): number;
|
|
declare const getDayBegin: (date: Date) => Date;
|
|
declare const getNDayAgo: (n: number, begin: boolean) => Date;
|
|
declare const getMonthBegin: (date: Date) => Date;
|
|
|
|
export { ONE_DAY, daysBetween, formatDate, getDayBegin, getMonthBegin, getNDayAgo, nextday, yesterday };
|