On 2008-09-20 14:13, Joel Rosdahl wrote:
> Hi,
> 
> Enclosed is a bug report from a Debian user. See also
> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494792>.

Thanks. We've opened a ticket for this. A fix will go into the
next release of mxDateTime (if possible - there are some technical
problems with Python's datetime instances which could make this
difficult).

Regards,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Sep 22 2008)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611



> Regards,
> Joel
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Subject:
> Bug#494792: python-egenix-mxdatetime: Incorrect subtraction with regular
> Python datetime
> From:
> David <[EMAIL PROTECTED]>
> Date:
> Tue, 12 Aug 2008 10:49:17 +0200
> To:
> "Debian Bug Tracking System" <[EMAIL PROTECTED]>
> 
> To:
> "Debian Bug Tracking System" <[EMAIL PROTECTED]>
> 
> 
> Package: python-egenix-mxdatetime
> Version: 3.1.0-1
> Severity: normal
> 
> *** Please type your report below this line ***
> 
> Hi. When you subtract an mx DateTime from a Python datetime, you can get
> an incorrect result.
> 
> Here's an example:
> 
> [EMAIL PROTECTED]:~$ python
> Python 2.5.2 (r252:60911, Jul 25 2008, 23:01:45)
> [GCC 4.3.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from mx import DateTime
>>>> import datetime
>>>> import time
>>>>
>>>> py_dtm1 = datetime.datetime.now()
>>>> mx_dtm1 = DateTime.now()
>>>> time.sleep(0.1)
>>>>
>>>> py_dtm2 = datetime.datetime.now()
>>>> mx_dtm2 = DateTime.now()
>>>>
>>>> print mx_dtm1 - mx_dtm2
> -00:00:00.10
>>>> print py_dtm1 - mx_dtm2
> 00:00:00.10
> 
> That last print statement should output "-00:00:00.10", not "00:00:00.10"
> 
> David.
> 
> -- System Information:
> Debian Release: lenny/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'stable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
> Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
> 
> Versions of packages python-egenix-mxdatetime depends on:
> ii  libc6                         2.7-12     GNU C Library: Shared libraries
> ii  python                        2.5.2-2    An interactive high-level 
> object-o
> ii  python-central                0.6.8      register and build utility for 
> Pyt
> ii  python-egenix-mxtools         3.1.0-1    collection of additional builtins
> 
> python-egenix-mxdatetime recommends no packages.
> 
> Versions of packages python-egenix-mxdatetime suggests:
> pn  python-egenix-mxdatetime-dbg  <none>     (no description available)
> 
> -- no debconf information
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________________________________
> eGenix Support Team                                 [EMAIL PROTECTED]
>                         http://www.egenix.com/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to