LittleDemon WebShell


Linux server27.hostingraja.org 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64
Path : /usr/lib64/python2.6/site-packages/mx/DateTime/mxDateTime/
File Upload :
Command :
Current File : //usr/lib64/python2.6/site-packages/mx/DateTime/mxDateTime/testcomdates.py

from mx.DateTime import *

c = 35000.0
error = 0
for i in range(1000000):
    t = DateTimeFromCOMDate(c)
    tc = t.COMDate()
    if not tc == c:
        print 'failed for: %s (%.16f != %.16f)' % (t,c,tc)
        error = 1
    # Let's give IEEE floats a hard time...
    if i % 10 == 0:
        c = c - 0.009
    else:
        c = c + 0.0099

if not error:
    print 'All went well !'

LittleDemon - FACEBOOK
[ KELUAR ]