@progress/kendo-date-math
Version:
Kendo UI typescript package exporting functions for Date manipulations
20 lines (19 loc) • 662 B
TypeScript
/**
* A function which returns a new `Date` instance.
*
* @param year - The year value.
* @param month - The month value.
* @param day - The day value.
* @param hours - The hours value.
* @param minutes - The minutes value.
* @param seconds - The seconds value.
* @param milliseconds - milliseconds value.
* @returns The date instance.
*
* @example
* ```ts-no-run
* createDate(2016, 0, 15); // 2016-01-15 00:00:00
* createDate(2016, 0, 15, 22, 22, 20); // 2016-01-15 22:22:20
* ```
*/
export declare const createDate: (year: number, month: number, day: number, hours?: number, minutes?: number, seconds?: number, milliseconds?: number) => Date;