In my current project, I have to print a lot of dates.  Fine, not a 
problem... _.DateTime().strftime() is just the method, right?


        The people who want this site want the local time, not UTC+0 that strftime 

        So, I created a tiny patch which adds  _.DateTime().strfltime(), which works 
identically, except it passes LOCALTIME instead of GMTIME.

        It's tiny, it's simple, but it's REALLY HANDY!

Have a better one,
        Curtis Maloney.

<dtml-var standard_work_disclaimer>
>     def strfltime(self, format):
>       return strftime(format, localtime(self.timeTime()))

Reply via email to