UNPKG

1.45 kBTypeScriptView Raw
1import { Time, TimepickerComponentState } from './timepicker.models';
2export declare function isValidDate(value?: string | Date): boolean;
3export declare function isValidLimit(controls: TimepickerComponentState, newDate: Date): boolean;
4export declare function toNumber(value?: string | number): number;
5export declare function isNumber(value: string | number): value is number;
6export declare function parseHours(value?: string | number, isPM?: boolean): number;
7export declare function parseMinutes(value?: string | number): number;
8export declare function parseSeconds(value?: string | number): number;
9export declare function parseTime(value?: string | Date): Date | undefined;
10export declare function changeTime(value?: Date, diff?: Time): Date;
11export declare function setTime(value: Date | undefined, opts: Time): Date | undefined;
12export declare function createDate(value: Date, hours: number, minutes: number, seconds: number): Date;
13export declare function padNumber(value: number): string;
14export declare function isHourInputValid(hours: string, isPM: boolean): boolean;
15export declare function isMinuteInputValid(minutes: string): boolean;
16export declare function isSecondInputValid(seconds: string): boolean;
17export declare function isInputLimitValid(diff: Time, max?: Date, min?: Date): boolean;
18export declare function isInputValid(hours: string, minutes: string | undefined, seconds: string | undefined, isPM: boolean): boolean;