@philipab/angular-bootstrap-datetimepicker
Version:
**Note**: This npm package is a fork of dalelotts/angular-bootstrap-datetimepicker, to provide an Ivy-compiled build of the current master branch. The fork was necessary because the official npm package did not release a new version with ivy support, yet.
24 lines (23 loc) • 685 B
TypeScript
import { DlDateAdapter } from './dl-date-adapter';
/**
* Adapts `number` to be usable as a date by date/time components that work with dates.
* No op adapter.
**/
export declare class DlDateAdapterNumber extends DlDateAdapter<number> {
/**
* Returns the specified number.
* @param milliseconds
* a moment time time.
* @returns
* the specified moment in time.
*/
fromMilliseconds(milliseconds: number): number;
/**
* Returns the specified number.
* @param value
* a moment time time or `null`
* @returns
* the specified moment in time or `null`
*/
toMilliseconds(value: number | null): number | null;
}