A basic question

Giampiero Benvenuti <giampiero.benvenuti-jacJaabyINpm6/[email protected]>
Newsgroups gmane.comp.web.zope.general
Message-ID <[email protected]>
Hello,

I have a python script in my zope instance:

dt=DateTime(2012,1)
print dt
print dt.strftime('%Y')
print dt.year()

return printed
2012/01/01 00:00:00 GMT+2
2011
2012


Why do I get two different values for the year (2011, 2012)?

Thank you,


Giampiero
_______________________________________________
Zope maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.