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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]