@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.
22 lines (21 loc) • 719 B
TypeScript
/**
* Determines the model type of the Date/Time picker another type.
*/
export declare abstract class DlDateAdapter<D> {
/**
* Create a new instance of a `D` type from milliseconds.
* @param milliseconds
* a moment in time value as milliseconds (local time zone)
* @returns
* an instance of `D` for the specified moment in time.
*/
abstract fromMilliseconds(milliseconds: number): D;
/**
* Returns a moment in time value as milliseconds (local time zone).
* @param value
* a moment in time value as `D` or `null`.
* @returns
* a moment in` for the specified value or `null`
*/
abstract toMilliseconds(value: D | null): number | null;
}