import { isSameSecond } from "https://deno.land/x/date_fns@v2.0.0-alpha.34/index.js";
Examples
// Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500
// in the same second?
var result = isSameSecond(
new Date(2014, 8, 4, 6, 30, 15),
new Date(2014, 8, 4, 6, 30, 15, 500)
)
//=> true
// Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 // in the same second? var result = isSameSecond( new Date(2014, 8, 4, 6, 30, 15), new Date(2014, 8, 4, 6, 30, 15, 500) ) //=> true