Skip to main content
Very Popular
Go to Latest
function differenceInMinutes
import { differenceInMinutes } from "https://deno.land/x/date_fns@v2.4.0/index.js";

Examples

// How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? var result = differenceInMinutes( new Date(2014, 6, 2, 12, 20, 0), new Date(2014, 6, 2, 12, 7, 59) ) //=> 12

Parameters

dirtyDateLeft
  • the later date
dirtyDateRight
  • the earlier date