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

minutesToHours

import { minutesToHours } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Convert 140 minutes to hours:
const result = minutesToHours(120)
//=> 2
@example
// It uses floor rounding:
const result = minutesToHours(179)
//=> 2
function minutesToHours(minutes: number): number;
§
minutesToHours(minutes: number): number
[src]

§Parameters

§
minutes: number
[src]
  • The number of minutes to be converted

§Return Type

§
number
[src]

The number of minutes converted in hours