react-nepali-datetime-picker
Version:
A simple and reusable Nepali calendar, date and time picker components for React.
18 lines (17 loc) • 893 B
TypeScript
import { HourFormat } from '../types/HourFormat';
import { Language } from '../types/Language';
import { NepaliDate } from '../types/NepaliDate';
import { NepaliDateTime } from '../types/NepaliDateTime';
import { NepaliTime } from '../types/NepaliTime';
export declare const MAX_NEPALI_DATETIME_LENGTH_IN_12_FORMAT = 23;
export declare const MAX_NEPALI_DATETIME_LENGTH_IN_24_FORMAT = 16;
export declare const MAX_ENGLISH_DATETIME_LENGTH_IN_12_FORMAT = 19;
export declare const MAX_ENGLISH_DATETIME_LENGTH_IN_24_FORMAT = 16;
export declare const validateNepaliDateTime: (value: string, lang?: Language, hourFormat?: HourFormat) => {
value?: {
date: NepaliDate | undefined;
time: NepaliTime | undefined;
} | undefined;
valid: boolean;
};
export declare const formatNepaliDateTime: (nepaliDateTime: NepaliDateTime, lang?: Language, hourFormat?: HourFormat) => string;