hunk.code_window:         { start: new Date(2016, 10, 5), end: new Date(NaN) },
         );
         assert(numOverlappingDays === 0);
       });
     });
   });
hunk.labels: keep keep keep keep add keep
hunk.after_edit:   it("properly sorts the dates", () => {
       const result = getOverlappingDaysInIntervals(
         {
           start: new Date(2001, 8 /* Sep */, 1),
           end: new Date(2023, 11 /* Dec */, 20),
         },
         {
           start: new Date(2023, 11 /* Dec */, 21),
           end: new Date(2001, 8 /* Sep */, 9),
         },
       );
       expect(result).toBe(8137);
     });
  
hunk.file_path: src/getOverlappingDaysInIntervals/test.ts
hunk.type: add
file: import type { FormatLong } from "../../../types.js";
  import { buildFormatLongFn } from "../../../_lib/buildFormatLongFn/index.js";
  
  const dateFormats = {
    full: "EEEE, dd MMMM yyyy",
    long: "dd MMMM yyyy",
    medium: "dd MMM yyyy",
    short: "dd/MM/yyyy",
  };
  
  const timeFormats = {
    full: "HH:mm:ss zzzz",
    long: "HH:mm:ss z",
    medium: "HH:mm:ss",
    short: "H:mm",
  };
  
  const dateTimeFormats = {
    any: "{{date}} {{time}}",
  };
  
  export const formatLong: FormatLong = {
    date: buildFormatLongFn({
      formats: dateFormats,
      defaultWidth: "full",
    }),
  
    time: buildFormatLongFn({
      formats: timeFormats,
      defaultWidth: "full",
    }),
  
    dateTime: buildFormatLongFn({
      formats: dateTimeFormats,
      defaultWidth: "any",
    }),
  };
  