UNPKG

@harvest-profit/npk

Version:
28 lines 1.59 kB
export declare const today: () => Date; export declare const yesterday: () => Date; export declare const tomorrow: () => Date; export declare const nextMonth: () => Date; export declare const lastMonth: () => Date; export declare const nextYear: () => Date; export declare const lastYear: () => Date; export declare const startOfWeek: (date?: Date) => Date; export declare const endOfWeek: (date?: Date) => Date; export declare const startOfMonth: (date?: Date) => Date; export declare const endOfMonth: (date?: Date) => Date; export declare const startOfYear: (date?: Date) => Date; export declare const endOfYear: (date?: Date) => Date; export declare function fromISO(dateString: any): Date; export declare function toISO(date: any): any; export declare function fromTimestamp(number: any): Date; export declare function toTimestamp(date: any): any; export declare function monthIndexToHuman(monthIndex: any): any; export declare function monthHumanToIndex(monthNumber: any): number; export declare const MONTH_ABBREVIATIONS: string[]; export declare function monthIndexToAbbrev(monthIndex: any): string; export declare function monthAbbrevToIndex(monthAbbrev: any): number; export declare function isSameDay(one: any, two: any): boolean; export declare function isPartOfSelection(state: any, date: any): boolean; export declare function getDatesInWeek(weekIndex: any, visibleDate: any): Date[]; export declare function getWeeksInMonth(visibleDate: any): number; export declare function nameForVisibleDates(visibleDate: any, visibleMonths?: number): any; //# sourceMappingURL=utils.d.ts.map