import { roundToNearestMinutes } from "https://deno.land/x/date_fns@v2.0.0-alpha.34/index.js";
Examples
// Round 10 July 2014 12:12:34 to nearest minute:
var result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34))
//=> Thu Jul 10 2014 12:13:00
// Round 10 July 2014 12:12:34 to nearest minute: var result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34)) //=> Thu Jul 10 2014 12:13:00