postgres-interval

JSON →
library 4.0.2 ·javascript
verified Jun 5, 2026

Parse Postgres interval columns. v4.0.2 (stable) — mature, low-churn single-purpose package with TypeScript declarations. Parses default Postgres interval string format (e.g. '01:02:03') and returns an object with months, days, hours, minutes, seconds, milliseconds. Provides toPostgres(), toISOString(), toISOStringShort() methods. No validation — expects well-formed input. Minimal dependencies, focused on performance. Current version drops Node <12.