os.tilmes() problem

Anthony admin.cluster at gmail.com
Mon May 29 08:43:56 EDT 2006


i have a problem with the os.times() command, on different Python 
versions, i get different printout:

Server1# python
Python 2.3.4 (#1, Feb 2 2005, 11:44:13)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import time
 >>> import os
 >>>
 >>> print os.times()[4]
4880406.62


----------------------------------
Server2% python
Python 2.3.2 (#4, Sep 14 2004, 09:41:45) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
 >>> import time
 >>> import os
 >>>
 >>> print os.times()[4]
-21464227.74


---------------
Server3% python
Python 2.4.1 (#1, May 16 2005, 15:19:29)
[GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import time
 >>> import os
 >>>
 >>> print os.times()[4]
18390711.21



and on the 3 servers, the linux command: $date
returns the same value.....

any suggestions???



More information about the Python-list mailing list