getSeconds
import { getSeconds } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Get the seconds of 29 February 2012 11:45:05.123:
const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123))
//=> 5
function getSeconds<DateType extends Date>(date: DateType | number | string): number;