develooper Front page | perl.datetime | Postings from January 2006

Refactoring of Format::Pg->parse_duration()

Thread Next
From:
David Wheeler
Date:
January 6, 2006 15:21
Subject:
Refactoring of Format::Pg->parse_duration()
Message ID:
1DFC17C7-92D4-4F4F-830A-BA78C02ECDE4@kineticode.com
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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About