I sent this Weds, but overlooked the necessity to "reply all".
I thought I should re-post in case it may be of interest, and because it
points out a docs discrepancy.
..jim

> On 02/03/2010 10:55 PM, hemanth reddy wrote:
>> > Hi
>> > *
>> > *
>> >
>> > *[% close_time="2000/12/21 4:20:36" %]
>> >
>> > how to covert close_time to number of seconds since epoch
>> >
>> >
>> > can i do it using [%USE Date%]?
>> > ..
> How about this:
>
>   [% USE date %]
>   [% date.format("4:20:36 21:12:2001", format="%s") %]
>
> Date seems fussy about the input format of date.
> Docs at
>   http://www.tt2.org/docs/modules/Template/Plugin/Date.html
> appear to be wrong! Entering the wrong format yields an error message:
>   date error - bad time/date string:  expects 'h:m:s d:m:y' ...
>
> Regards,
> ..jim

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

Reply via email to