Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.0/millisecondsToMinutes/index.ts";

Examples

// Convert 60000 milliseconds to minutes: const result = millisecondsToMinutes(60000) //=> 1

// It uses floor rounding: const result = millisecondsToMinutes(119999) //=> 1

Parameters

milliseconds: number
  • number of milliseconds to be converted.

Returns

number

the number of milliseconds converted in minutes