Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.7.0/isThisHour/index.js";

Examples

// If now is 25 September 2014 18:30:15.500, // is 25 September 2014 18:00:00 in this hour? var result = isThisHour(new Date(2014, 8, 25, 18)) //=> true

Parameters

dirtyDate
  • the date to check