{"version":3,"file":"endOfDay.mjs","names":[],"sources":["../../src/date/endOfDay.ts"],"sourcesContent":["/**\n * Returns a new Date object set to the end of the day (23:59:59.999).\n *\n * @param date - The date to modify\n * @returns A new Date object set to the end of the day\n *\n * @example\n * endOfDay(new Date('2024-01-15T14:30:45.123Z'))\n * // => Date object for 2024-01-15T23:59:59.999Z\n */\nexport function endOfDay(date: Date): Date {\n  if (!(date instanceof Date) || isNaN(date.getTime())) {\n    return new Date(NaN);\n  }\n\n  const result = new Date(date);\n  result.setHours(23, 59, 59, 999);\n  return result;\n}\n"],"mappings":";;;;;;;;;;;AAUA,SAAgB,SAAS,MAAkB;CACzC,IAAI,EAAE,gBAAgB,SAAS,MAAM,KAAK,QAAQ,CAAC,GACjD,uBAAO,IAAI,KAAK,GAAG;CAGrB,MAAM,SAAS,IAAI,KAAK,IAAI;CAC5B,OAAO,SAAS,IAAI,IAAI,IAAI,GAAG;CAC/B,OAAO;AACT"}