[Zope] Problem with strftime.
Hi: If I use this line in a Python script: print row['end_date'], row['end_date'].strftime('%d') I get: 2005/10/13 12 You can see the day is out by one. Should be 13, but is gets converted as 12. So I'm curious what's up with that? Zope Version (Zope 2.8.1-final, python 2.4.0, freebsd5) Python Version 2.4 (#2, Aug 25 2005, 15:17:08) [GCC 3.4.2 [FreeBSD] 20040728] Thanks, Jason. -- Jason C. Leach PGP Key: 0x62DDDF75 Keyserver: gpg.mit.edu ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problem with strftime.
--On 13. Oktober 2005 14:46:26 -0700 Jason C. Leach [EMAIL PROTECTED] wrote: Hi: If I use this line in a Python script: print row['end_date'], row['end_date'].strftime('%d') I get: 2005/10/13 12 You can see the day is out by one. Should be 13, but is gets converted as 12. So I'm curious what's up with that? Provide a detailed description how to reproduce that...especially what type is row[‘end_date‘]? Where is it coming from? -aj pgpoFccAaBofQ.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )