Rocky_Mountain_Vending/.pnpm-store/v10/files/39/c9319ce0e111a77da8f7a2f69e42bb024438abb005d16b2ba0d8d6467f05c7a8f0bd7e731a47b6cc8b80714108c4aa328f5222ac405f9745362fec3027123d
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

25 lines
548 B
Text

import { toDate } from "./toDate.js";
/**
* @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
*/
export function getSeconds(date) {
return toDate(date).getSeconds();
}
// Fallback for modularized imports:
export default getSeconds;