Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

isThisSecond

import { isThisSecond } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// If now is 25 September 2014 18:30:15.500,
// is 25 September 2014 18:30:15.000 in this second?
const result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15))
//=> true
function isThisSecond<DateType extends Date>(date: DateType | number | string): boolean;
§
isThisSecond<DateType extends Date>(date: DateType | number | string): boolean
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

§
date: DateType | number | string
[src]
  • The date to check

§Return Type

§
boolean
[src]

The date is in this second