1 | import { DatePipe, TranslationWidth } from '@angular/common';
|
2 | import { NbDateService } from './date.service';
|
3 | import * as i0 from "@angular/core";
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare class NbNativeDateService extends NbDateService<Date> {
|
9 | protected datePipe: DatePipe;
|
10 | constructor(locale: string);
|
11 | setLocale(locale: string): void;
|
12 | setHours(date: Date, hour: number): Date;
|
13 | setMinutes(date: Date, minute: number): Date;
|
14 | setSeconds(date: Date, second: number): Date;
|
15 | setMilliseconds(date: Date, second: number): Date;
|
16 | isValidDateString(date: string, format: string): boolean;
|
17 | isValidTimeString(date: string, format: string): boolean;
|
18 | today(): Date;
|
19 | getLocaleTimeFormat(): string;
|
20 | getDate(date: Date): number;
|
21 | getMonth(date: Date): number;
|
22 | getYear(date: Date): number;
|
23 | getDayOfWeek(date: Date): number;
|
24 | /**
|
25 | * returns first day of the week, it can be 1 if week starts from monday
|
26 | * and 0 if from sunday and so on.
|
27 | * */
|
28 | getFirstDayOfWeek(): number;
|
29 | getMonthName(date: Date, style?: TranslationWidth): string;
|
30 | getMonthNameByIndex(index: number, style?: TranslationWidth): string;
|
31 | getDayOfWeekNames(): string[];
|
32 | format(date: Date, format: string): string;
|
33 | /**
|
34 | * We haven't got capability to parse date using formatting without third party libraries.
|
35 | * */
|
36 | parse(date: string, format: string): Date;
|
37 | addDay(date: Date, num: number): Date;
|
38 | addMonth(date: Date, num: number): Date;
|
39 | addMinutes(date: Date, minute: number): Date;
|
40 | addHours(date: Date, hour: number): Date;
|
41 | getHours(date: Date): number;
|
42 | getMinutes(date: Date): number;
|
43 | getSeconds(date: Date): number;
|
44 | getMilliseconds(date: Date): number;
|
45 | addYear(date: Date, num: number): Date;
|
46 | clone(date: Date): Date;
|
47 | compareDates(date1: Date, date2: Date): number;
|
48 | createDate(year: number, month: number, date: number): Date;
|
49 | getMonthEnd(date: Date): Date;
|
50 | getMonthStart(date: Date): Date;
|
51 | getNumberOfDaysInMonth(date: Date): number;
|
52 | getYearEnd(date: Date): Date;
|
53 | getYearStart(date: Date): Date;
|
54 | valueOf(date: Date): number;
|
55 | isSameDay(date1: Date, date2: Date): boolean;
|
56 | isSameMonth(date1: Date, date2: Date): boolean;
|
57 | isSameYear(date1: Date, date2: Date): boolean;
|
58 | getId(): string;
|
59 | getWeekNumber(date: Date): number;
|
60 | getDateFormat(): string;
|
61 | getTwelveHoursFormat(): string;
|
62 | static ɵfac: i0.ɵɵFactoryDeclaration<NbNativeDateService, never>;
|
63 | static ɵprov: i0.ɵɵInjectableDeclaration<NbNativeDateService>;
|
64 | }
|