Drew Taylor wrote:
In the template I wanted to take the stringified class_date object ("2004-10-25 09:00:00") and split on the white space to get the individual day and hour components. My first thought was:
[day, time] = schedule.class_date.split(' ');
But this tried calling the split() method on the Class::Date object rather than the stringified version. So then I tried:
[day, time] = ${date.class_date}.split(' ');
If class_date really isa Class::Date object can't you just do this? [% date = schedule.class_date.ymd time = schedule.class_date.hms day = schedule.class_date.day %]
-Derrek
_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
