Mikro ORM Temporal Types

JSON →
library 2.0.2 ·javascript
verified Jun 4, 2026

Provides Mikro ORM property types for the TC39 Temporal API objects including Duration, PlainDate, PlainDateTime, PlainTime, ZonedDateTime, Instant, PlainMonthDay, and PlainYearMonth. Current version 2.0.2 requires @mikro-orm/core >= 7.0.1. Supports Postgres, MySQL, MariaDB. This library integrates Temporal types into Mikro ORM's schema and query system, mapping them to appropriate database column types (e.g., INTERVAL for durations in Postgres, VARCHAR for others). It is the only known Mikro ORM extension for Temporal objects, filling a gap for modern date/time handling without legacy Date issues.