[mod_python] How to format ssi dates ?

Graham Dumpleton grahamd at dscpl.com.au
Tue Nov 14 15:44:43 EST 2006


Bouncing this back to list in case anyone else has any ideas.

durumdara wrote ..
> Hi !
> 
> Sorry, but I forgot to write that config command is not working for me.
> 
> I try with this:
> <!--#config timefmt="%Y" --><!--#echo var="DATE_LOCAL" -->
> The result is:
> Tuesday, 14-Nov-2006 13:17:43 Közép-európai téli idő
> 
> <!--#config timefmt="%m %Y" --><!--#echo var="DATE_LOCAL" -->
> Tuesday, 14-Nov-2006 13:18:30 Közép-európai téli idő
> 
> Nothing happened !
> 
> Why ???
> 
> Thanks for your help:
>     dd
> 
> Graham Dumpleton wrote:
> >
> >
> >
> >   http://httpd.apache.org/docs/2.2/howto/ssi.html
> >
> > Specifically, look for:
> >
> >   <!--#config timefmt="%A %B %d, %Y" -->
> >    Today is <!--#echo var="DATE_LOCAL" -->
> >
> > The format string for time is based on what system strftime() function
> > takes.
> > You can look at what these generally are by looking at the Python 
> > strftime()
> > documentation, although that isn't what is actually being used here.
> >
> >   http://docs.python.org/lib/module-time.html
> >
> > Graham


More information about the Mod_python mailing list