getSeconds.d.cts 484 B

12345678910111213141516171819
  1. import type { DateArg } from "./types.js";
  2. /**
  3. * @name getSeconds
  4. * @category Second Helpers
  5. * @summary Get the seconds of the given date.
  6. *
  7. * @description
  8. * Get the seconds of the given date.
  9. *
  10. * @param date - The given date
  11. *
  12. * @returns The seconds
  13. *
  14. * @example
  15. * // Get the seconds of 29 February 2012 11:45:05.123:
  16. * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123))
  17. * //=> 5
  18. */
  19. export declare function getSeconds(date: DateArg<Date> & {}): number;