Files
e-tib.com/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getSeconds.cjs
Marc Mintel d14122005d Initial commit: E-TIB production hardening & E2E foundation
Former-commit-id: ef04fca3d76375630c05aac117bf586953f3b657
2026-04-28 19:11:38 +02:00

25 lines
535 B
JavaScript

"use strict";
exports.getSeconds = getSeconds;
var _index = require("./toDate.cjs");
/**
* @name getSeconds
* @category Second Helpers
* @summary Get the seconds of the given date.
*
* @description
* Get the seconds of the given date.
*
* @param date - The given date
*
* @returns The seconds
*
* @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(date) {
return (0, _index.toDate)(date).getSeconds();
}