Hi All,

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.

Best,

David

Attachment: pg_parse_duration.patch
Description: Binary data

Reply via email to