Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

getMinutes

import { getMinutes } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Get the minutes of 29 February 2012 11:45:05:
const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5))
//=> 45
function getMinutes<DateType extends Date>(date: DateType | number | string): number;
§
getMinutes<DateType extends Date>(date: DateType | number | string): number
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

§
date: DateType | number | string
[src]
  • The given date

§Return Type

§
number
[src]

The minutes