{"version":3,"sources":["../src/sameMillisecond.ts"],"sourcesContent":["import { date } from \"./date\"\nimport type { DateInput, MaybeDateInput } from \"./types\"\n\n/**\n * Checks if two date objects refer to the same millisecond. Ignores date.\n * @param inputDateA - First date to compare\n * @param [inputDateB] - Second date to compare or the current time if nothing given\n */\nexport function sameMillisecond(inputDateA: DateInput, inputDateB?: MaybeDateInput): boolean\n/**\n * Checks if two date objects refer to the same millisecond. Ignores date.\n * @param [inputDateA] - First date to compare or the current time if null given\n * @param inputDateB - Second date to compare\n */\nexport function sameMillisecond(inputDateA: MaybeDateInput, inputDateB: DateInput): boolean\nexport function sameMillisecond(\n  inputDateA: MaybeDateInput,\n  inputDateB?: MaybeDateInput\n): boolean {\n  const a = date(inputDateA)\n  const b = date(inputDateB)\n  return a.getMilliseconds() === b.getMilliseconds()\n}\n"],"mappings":";AAAA,SAAS,YAAY;AAed,SAAS,gBACd,YACA,YACS;AACT,QAAM,IAAI,KAAK,UAAU;AACzB,QAAM,IAAI,KAAK,UAAU;AACzB,SAAO,EAAE,gBAAgB,MAAM,EAAE,gBAAgB;AACnD;","names":[]}