1 | import type { ContextOptions, DateArg } from "./types.js";
|
2 | /**
|
3 | * The {@link getMinutes} function options.
|
4 | */
|
5 | export interface GetMinutesOptions extends ContextOptions<Date> {}
|
6 | /**
|
7 | * @name getMinutes
|
8 | * @category Minute Helpers
|
9 | * @summary Get the minutes of the given date.
|
10 | *
|
11 | * @description
|
12 | * Get the minutes of the given date.
|
13 | *
|
14 | * @param date - The given date
|
15 | * @param options - The options
|
16 | *
|
17 | * @returns The minutes
|
18 | *
|
19 | * @example
|
20 | * // Get the minutes of 29 February 2012 11:45:05:
|
21 | * const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5))
|
22 | * //=> 45
|
23 | */
|
24 | export declare function getMinutes(
|
25 | date: DateArg<Date> & {},
|
26 | options?: GetMinutesOptions | undefined,
|
27 | ): number;
|