import { isSameMinute } from "https://deno.land/x/date_fns@v2.12.0/index.js";
Examples
// Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15
// in the same minute?
var result = isSameMinute(
new Date(2014, 8, 4, 6, 30),
new Date(2014, 8, 4, 6, 30, 15)
)
//=> true
// Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 // in the same minute? var result = isSameMinute( new Date(2014, 8, 4, 6, 30), new Date(2014, 8, 4, 6, 30, 15) ) //=> true