ngx-bootstrap
Version:
Native Angular Bootstrap Components
14 lines (13 loc) • 941 B
TypeScript
import { Time } from './timepicker.models';
export declare function isValidDate(value?: string | Date): boolean;
export declare function toNumber(value: string | number): number;
export declare function isNumber(value: string): boolean;
export declare function parseHours(value: string | number, isPM?: boolean): number;
export declare function parseMinutes(value: string | number): number;
export declare function parseSeconds(value: string | number): number;
export declare function parseTime(value: string | Date): Date;
export declare function changeTime(value: Date, diff: Time): Date;
export declare function setTime(value: Date, opts: Time): Date;
export declare function createDate(value: Date, hours: number, minutes: number, seconds: number): Date;
export declare function padNumber(value: number): string;
export declare function isInputValid(hours: string, minutes: string, seconds: string, isPM: boolean): boolean;