UNPKG

ngx-material-timepicker

Version:
13 lines (12 loc) 643 B
import { DateTime } from 'luxon'; import { TimePeriod } from '../models/time-period.enum'; export declare class TimeAdapter { static parseTime(time: string, format?: number): string; static formatTime(time: string, format?: number): string; static convertTimeToDateTime(time: string, format?: number): DateTime; static isTimeAvailable(time: string, min?: DateTime, max?: DateTime, granularity?: 'hours' | 'minutes', minutesGap?: number, format?: number): boolean; /*** * Format hour according to time format (12 or 24) */ static formatHour(currentHour: number, format: number, period: TimePeriod): number; }