UNPKG

526 BTypeScriptView Raw
1import type { DateArg } from "./types.js";
2/**
3 * @name getMilliseconds
4 * @category Millisecond Helpers
5 * @summary Get the milliseconds of the given date.
6 *
7 * @description
8 * Get the milliseconds of the given date.
9 *
10 * @param date - The given date
11 *
12 * @returns The milliseconds
13 *
14 * @example
15 * // Get the milliseconds of 29 February 2012 11:45:05.123:
16 * const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123))
17 * //=> 123
18 */
19export declare function getMilliseconds(date: DateArg<Date> & {}): number;