-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.d.ts
56 lines (45 loc) · 2.15 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { Moment } from 'moment-jalaali';
declare class PersianUtils {
public toJMoment(date: any): Moment;
public parse(value: any, format: string): Moment;
public date(value: any, format?: string): Moment;
public isValid(date: Moment): boolean;
public isNull(date: Moment): boolean;
public isEqual(value: Moment, comparing: Moment): boolean;
public isAfter(date: Moment, value: Moment): boolean;
public isBefore(date: Moment, value: Moment): boolean;
public isAfterDay(date: Moment, value: Moment): boolean;
public isBeforeDay(date: Moment, value: Moment): boolean;
public isBeforeYear(date: Moment, value: Moment): boolean;
public isAfterYear(date: Moment, value: Moment): boolean;
public isSameDay(date: Moment, comparing: Moment): boolean;
public addDays(date: Moment, count: number): Moment;
public startOfDay(date: Moment): Moment;
public endOfDay(date: Moment): Moment;
public format(date: Moment, format: string): string;
public formatNumber(num: number): string;
public getMeridiemText(ampm: 'am' | 'pm'): string;
public getHours(date: Moment): number;
public setHours(date: Moment, value: number): Moment;
public getMinutes(date: Moment): number;
public setMinutes(date: Moment, value: number): Moment;
public getMonth(date: Moment): number;
public getStartOfMonth(date: Moment): Moment;
public getNextMonth(date: Moment): Moment;
public getPreviousMonth(date: Moment): Moment;
public getYear(date: Moment): number;
public setYear(date: Moment, year: number): Moment;
public mergeDateAndTime(date: Moment, time: Moment): Moment;
public getDiff(date: Moment, comparing: Moment): number;
public getWeekdays(): string[];
public getWeekArray(date: Moment): Moment[][];
public getYearRange(start: Moment, end: Moment): Moment[];
public getCalendarHeaderText(date: Moment): string;
public getDatePickerHeaderText(date: Moment): string;
public getDateTimePickerHeaderText(date: Moment): string;
public getDayText(date: Moment): string;
public getHourText(date: Moment, ampm: boolean): string;
public getMinuteText(date: Moment): string;
public getYearText(date: Moment): string;
}
export default PersianUtils;