I hate to sound like such a newbie, but I am having the darndest time trying to figure out how to get the current year. I know that the current time is ZopeTime, but I have tried every way I can think of to get the year() function to work with it, and at last have given up. The documentation I have found is vague at best (imagine). Please help. --Aaron
I hate to sound like such a newbie, but I am having the darndest time trying to figure out how to get the current year. I know that the current time is ZopeTime, but I have tried every way I can think of to get the year() function to work with it, and at last have given up. The documentation I have found is vague at best (imagine). Please help.
<dtml-var "ZopeTime().year()">
Aaron Williamson wrote:
I hate to sound like such a newbie, but I am having the darndest time trying to figure out how to get the current year. I know that the current time is ZopeTime, but I have tried every way I can think of to get the year() function to work with it, and at last have given up. The documentation I have found is vague at best (imagine). Please help.
The zope quick reference is my source for answers about time formatting. I also hear that DateTime.py has excellent in-source documentaton. Unlike steve, I would do <dtml-var ZopeTime fmt=year> Hope that helps in the future. -- ethan mindlace fremen Zopatista Community Liason Abnegate I!
participants (3)
-
Aaron Williamson -
ethan mindlace fremen -
Steve Drees