On 05.03.10 11:10, Andreas Zeidler wrote:
>   >>> now == DateTime(now.ISO8601())
>   False
>   >>> now.ISO8601()
>   '2010-03-05T11:06:09+01:00'
> 
> unlike stated in `DateTime.interfaces` the string returned `ISO8601`
> method does not contain the time zone.

oops, it does, of course (i think i'm still a bit too tired :)).  sorry
about this! :)

the above example fails, because `now` contains the microseconds, but
`ISO8601` doesn't include them:

  >>> now - DateTime(now.ISO8601())
  1.9525578703703702e-06
  >>> now, DateTime(now.ISO8601())
  (DateTime('2010/03/05 11:16:9.168701 GMT+1'),
   DateTime('2010/03/05 11:16:09 GMT+1'))

> tres, do you have any comments on this?

nevermind, i think now it should be clear what needs to be changed... :)

> cheers,
> 
> 
> andi

-- 
zeidler it consulting - http://zitc.de/ - i...@zitc.de
friedelstra├če 31 - 12047 berlin - telefon +49 30 25563779
pgp key at http://zitc.de/pgp - http://wwwkeys.de.pgp.net/
plone 4.0 alpha released! -- http://plone.org/products/plone/
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to