import { startOfSecond } from "https://deno.land/x/date_fns@v2.0.0-alpha.34/index.js";
Examples
// The start of a second for 1 December 2014 22:15:45.400:
var result = startOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400))
//=> Mon Dec 01 2014 22:15:45.000
// The start of a second for 1 December 2014 22:15:45.400: var result = startOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) //=> Mon Dec 01 2014 22:15:45.000