UNPKG

ng2-date-picker

Version:

[![Build Status](https://travis-ci.org/vlio20/angular-datepicker.svg?branch=master)](https://travis-ci.org/vlio20/angular-datepicker) [![Backers on Open Collective](https://opencollective.com/angular-datepicker/backers/badge.svg)](#backers) [![Sponsor

23 lines (22 loc) 1.4 kB
import { Moment } from 'moment'; import { UtilsService } from '../common/services/utils/utils.service'; import { ITimeSelectConfig, ITimeSelectConfigInternal } from './time-select-config.model'; export declare type TimeUnit = 'hour' | 'minute' | 'second'; export declare const FIRST_PM_HOUR = 12; export declare class TimeSelectService { private utilsService; readonly DEFAULT_CONFIG: ITimeSelectConfigInternal; constructor(utilsService: UtilsService); getConfig(config: ITimeSelectConfig): ITimeSelectConfigInternal; getTimeFormat(config: ITimeSelectConfigInternal): string; getHours(config: ITimeSelectConfigInternal, t: Moment | null): string; getMinutes(config: ITimeSelectConfigInternal, t: Moment | null): string; getSeconds(config: ITimeSelectConfigInternal, t: Moment | null): string; getMeridiem(config: ITimeSelectConfigInternal, time: Moment): string; decrease(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): Moment; increase(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): Moment; toggleMeridiem(time: Moment): Moment; shouldShowDecrease(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): boolean; shouldShowIncrease(config: ITimeSelectConfigInternal, time: Moment, unit: TimeUnit): boolean; shouldShowToggleMeridiem(config: ITimeSelectConfigInternal, time: Moment): boolean; }