import {
  contramap
} from "./chunk-KKQVF4Y5.mjs";
import {
  Ord
} from "./chunk-YK6FTF2O.mjs";
import {
  pipe
} from "./chunk-ZI34HWXZ.mjs";
import {
  __export
} from "./chunk-QK4PKNB3.mjs";

// src/Date.ts
var Date_exports = {};
__export(Date_exports, {
  Eq: () => Eq,
  Ord: () => Ord2,
  create: () => create,
  eqDate: () => eqDate,
  eqMonth: () => eqMonth,
  eqYear: () => eqYear,
  now: () => now
});
var Eq = {
  equals: (first, second) => first.valueOf() === second.valueOf()
};
var eqDate = {
  equals: (x, y) => x.getDate() === y.getDate()
};
var eqMonth = {
  equals: (x, y) => x.getMonth() === y.getMonth()
};
var eqYear = {
  equals: (x, y) => x.getFullYear() === y.getFullYear()
};
var Ord2 = /* @__PURE__ */ pipe(
  Ord,
  /* @__PURE__ */ contramap((date) => date.valueOf())
);
var create = () => /* @__PURE__ */ new Date();
var now = () => (/* @__PURE__ */ new Date()).getTime();

export {
  Eq,
  eqDate,
  eqMonth,
  eqYear,
  Ord2 as Ord,
  create,
  now,
  Date_exports
};
