[Zope] date: week in year

Stephan Richter srichter@cbu.edu
Thu, 27 Apr 2000 03:37:00 -0500


At 09:50 AM 4/27/00 +0100, you wrote:
>Hello
>
>Zope has several formatting options for displaying date and time
>(appendix A Zope DMTL Ref). But sadly enough none of them for
>displaying the number of the week :-(
>Is there another Zope way ? Is something possible with Python ?
>However, my Pythonish is about the same level as is my Swahili ...

The FMT flag supports strftime syntax. See the ZQR for a listing of all 
strftime options.
To get the week:

<dtml-var DATE fmt="%W">

Regards,
Stephan
--
Stephan Richter - (901) 573-3308 - srichter@cbu.edu
CBU - Physics & Chemistry; Framework Web - Web Design & Development
PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391