Greetings,

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

        Wrong.

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

        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>
1183a1184,1185
>     def strfltime(self, format):
>       return strftime(format, localtime(self.timeTime()))

Reply via email to