UNPKG

air-lib

Version:

This is Air's angular component library

28 lines (27 loc) 1.29 kB
export declare class DateService { constructor(); dateFormatString(value: any, locale: string): string; getDayAndMonth(date: Date): string; formatDate(dateStr: any, locale: string | null): string; formatPeriod(fromUtc: any, toUtc: any, locale: string | null): string; formatTime(date: any, locale: string): string; getCustomDate(date: any, locale: string, isFullMonth: boolean): string; getCustomDateWithTitle(date: any, locale: string | null, isFullMonth: boolean): string; getCustomPeriod(period: any, locale: string | null): string; getDiffPeriod(period: any): { years: number; months: number; days: number; }; getPeriodString(years: any, months: any, days: any, locale: any, and: any): string; private getYearString; private getMonthString; private getDayString; getCustomDiffPeriod(period: any, locale: string | null, and: string, flag?: boolean): string; setPresetPeriods(periodDictionary: any[], ranges: any, fullperiod: any): void; getMonths(): string[]; getMonthsShortName(): any; getTotalDaysFromYoutubeDate(date: any): number; getPeriodInMonths(fromUtc: any, toUtc: any, locale: string | null): string; transformDate(data: any): Date; }