UNPKG

nums2persian

Version:
99 lines (98 loc) 3.82 kB
export declare const dayOfWeekShamsi: (dayOfWeekMiladi: number) => number; export declare const ReturnMiladyDate: (date: string, format?: string) => string; export declare const ReturnPersianDate: (date: string, format?: string) => string; /** * give year and month after that * @return `Fitst day on month` jalali date format `YYYY/MM/DD` */ export declare const ReturnFirstDayOfMonth: (year: number, month: number) => string; /** * give year and month after that * @return `Fitst day on month` jalali date format `YYYY/MM/DD` */ export declare const ReturnLastPeriod: (year: number) => string; /** * give year and month after that * @return `Fitst day on month` jalali date format `YYYY/MM/DD` */ export declare const ReturnFirstPeriod: (year: number) => string; /** * @return `today` jalali date format `YYYY/MM/DD` */ export declare const ReturnToday: () => string; /** * give date as parametr and validate it * @param date "jalali date format 'YYYY/MM/DD'" * @return if date data is correct return true else return false */ export declare const isValid: (date: string) => boolean; /** * @return `Previous Day By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnPreviousDay: (value: string) => string; /** * @return `Next Day By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnNextDay: (value: string) => string; /** * @return `Previous Week By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnPreviousWeek: (value: string) => string; /** * @return `Next Week By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnNextWeek: (value: string) => string; /** * @return `Previous Month By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnPreviousMonth: (value: string) => string; /** * @return `Next Month By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnNextMonth: (value: string) => string; /** * @return `Previous Season By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnPreviousSeason: (value: string) => string; /** * @return `Next Season By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnNextSeason: (value: string) => string; /** * @return `Previous Year By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnPreviousYear: (value: string) => string; /** * @return `Next Year By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnNextYear: (value: string) => string; /** * @return `Previous Year By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnPrevious4Year: (value: string) => string; /** * @return `Next Year By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnNext4Year: (value: string) => string; /** * @return `Previous 10 Year By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnPrevious10Year: (value: string) => string; /** * @return `Next 10 Year By Current Day` jalali date format `YYYY/MM/DD` */ export declare const ReturnNext10Year: (value: string) => string; /** * @return `[year, month, day]` after split date * if value is the correcte date, this method return data of value * else this method return current date data */ export declare const ReturnCurrentDateValue: (value: string) => [number, number, number]; export declare const ReturnNameMonth: (month: number | string) => string; /** * * @param e value that it can contain ۱ or 1 * @returns {string} that evry ۱ convert to 1 ۲, ۲ convert to 2 and so on and other chars are filter */ export declare const normalizeDateString: (e: string) => string; export declare const onChangeInputDateBoxShamsiHandleValue: (e: string, value: string) => string;