From e4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 28 Jun 2025 17:26:46 -0700 Subject: initial commit: scaffolding --- node_modules/date-fns/esm/getMonth/index.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 node_modules/date-fns/esm/getMonth/index.js (limited to 'node_modules/date-fns/esm/getMonth/index.js') diff --git a/node_modules/date-fns/esm/getMonth/index.js b/node_modules/date-fns/esm/getMonth/index.js new file mode 100644 index 0000000..3c9df73 --- /dev/null +++ b/node_modules/date-fns/esm/getMonth/index.js @@ -0,0 +1,25 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getMonth + * @category Month Helpers + * @summary Get the month of the given date. + * + * @description + * Get the month of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the month + * @throws {TypeError} 1 argument required + * + * @example + * // Which month is 29 February 2012? + * const result = getMonth(new Date(2012, 1, 29)) + * //=> 1 + */ +export default function getMonth(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var month = date.getMonth(); + return month; +} \ No newline at end of file -- cgit v1.2.3