<quote who="Andy Wardley">
> Gavin Henry wrote:
>> So I think the best option is to use [% template.modtime %], but how can
>> I
>> convert from epoch from within a template?
>
> Hi Gavin,
>
> This should do what you want:
>
> [% USE date %]
> [% date.format(template.modtime) %]
>
> Cheers
> A

Hey, thanks ;-)

>
>
> _______________________________________________
> templates mailing list
> [email protected]
> http://lists.template-toolkit.org/mailman/listinfo/templates
>


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to