timeStamp.getNanoseconds()) print "seconds ", another.toSeconds() if not timeStamp == another: print "timeStamp==another failed" print "seconds ", another.toSeconds() another.add(1.1) print " after += 1.1 seconds ", another.toSeconds() if timeStamp == another: print "timeStamp==another failed" if not timeStamp < another: print "timeStamp==another failed" if not timeStamp <= another: print "timeStamp<=another failed" if timeStamp > another: print "timeStamp>another failed" if timeStamp >= another: print "timeStamp>=another failed" diff = another.toSeconds() - timeStamp.toSeconds() print "diff", diff another.sub(.1) diff = another.toSeconds() - timeStamp.toSeconds() print "diff", diff milli = timeStamp.getMilliseconds() print "timeStamp milli ", milli another.putMilliseconds(milli) print "another milli ", another.getMilliseconds() diff = another.toSeconds() - timeStamp.toSeconds() print "diff", diff print "all done"
print "seconds ", another.toSeconds() if not timeStamp == another: print "timeStamp==another failed" print "seconds ", another.toSeconds() another.add(1.1) print " after += 1.1 seconds ", another.toSeconds() if timeStamp == another: print "timeStamp==another failed" if not timeStamp < another: print "timeStamp==another failed" if not timeStamp <= another: print "timeStamp<=another failed" if timeStamp > another: print "timeStamp>another failed" if timeStamp >= another: print "timeStamp>=another failed" diff = another.toSeconds() - timeStamp.toSeconds() print "diff", diff another.sub(0.1) diff = another.toSeconds() - timeStamp.toSeconds() print "diff", diff milli = timeStamp.getMilliseconds() print "timeStamp milli ", milli another.putMilliseconds(milli) print "another milli ", another.getMilliseconds() diff = another.toSeconds() - timeStamp.toSeconds() print "diff", diff print "all done"
print "timeStamp==another failed" print "seconds ",another.toSeconds() another.add(1.1) print " after += 1.1 seconds ",another.toSeconds() if timeStamp==another : print "timeStamp==another failed" if not timeStamp<another : print "timeStamp==another failed" if not timeStamp<=another : print "timeStamp<=another failed" if timeStamp>another : print "timeStamp>another failed" if timeStamp>=another : print "timeStamp>=another failed" diff = another.toSeconds() - timeStamp.toSeconds() print "diff",diff another.sub(.1) diff = another.toSeconds() - timeStamp.toSeconds() print "diff",diff milli = timeStamp.getMilliseconds() print "timeStamp milli ",milli another.putMilliseconds(milli) print "another milli ",another.getMilliseconds() diff = another.toSeconds() - timeStamp.toSeconds() print "diff",diff print "all done"