[Catalyst] Dealing with timestamps from Postgres

Tomas Doran bobtfish at bobtfish.net
Thu Nov 3 12:36:54 GMT 2011


On 3 Nov 2011, at 12:21, Adam Jimerson wrote:

>  Also would it accept a ymd hms format or do they have to be separate?

Please see the fine documentation for DateTime.

Another option is to add a 'format_date' method to your view, and use  
the expose_methods config setting for View::TT..

In your TT code you'd then say [% WHILE (row = mydata_rs.next);  
format_date(row.my_date_field); END %]

Cheers
t0m






More information about the Catalyst mailing list