I've refactored the parse_duration() method of DateTime::Format::Pg so that it's much simpler, and a single Regex supports both ISO and Postgres-default duration formats. I added a whole slew of tests extracted from the PostgreSQL tests, too. Patch attached.

applied and committed.
I'll release 0.10 shortly.

--d

Reply via email to