react-native-global-datetimepicker
Version:
react native multi culture datetime picker
11 lines (10 loc) • 744 B
TypeScript
import { DayInfo } from '../Components/Day';
export declare const getMonthDays: (year: number, month: number, persianNumber: boolean) => DayInfo[];
export declare const jalaaliMonthLength: (jy: number, jm: number) => 31 | 30 | 29;
export declare const jalCalLeap: (jy: number) => number;
export declare const getDateUTCString: (date?: Date) => string | undefined;
export declare function toPersianNumber(text: string): string;
export declare function convertJalaliToGregorian(date: Date): Date;
export declare function convertGregorianToJalali(date: Date): Date;
export declare function formatPersianGregorian(gregorianDate: Date, format?: string): string;
export declare function formatPersianJalali(jalaliDate: Date, format: string): string;