UNPKG

@arturwojnar/hermes-postgresql

Version:

Production-Ready TypeScript Outbox Pattern for PostgreSQL

4 lines 256 B
const toTimestamp = (value) => new Date(Date.UTC(2000, 0, 1) + Number(value / 1000n)); const toServerSystemClock = (epochMs) => BigInt(epochMs - Date.UTC(2000, 0, 1)) * 1000n; export { toServerSystemClock, toTimestamp }; //# sourceMappingURL=helpers.js.map