I have to add a line before the code or it won't display properly
now = datetime.now()
year = now.year
month = now.month
day = now.day
hour = now.hour
minute = now.minute
second = now.second
testTime = datetime(year,month,day,hour,minute,second)
print testTime - now
The code above give me result like this :-1 day, 23:59:59.106000,but it should be only microseconds,right?
The funny thing is if I add 1 to a field,say minute,it will give me the right answer.
Does anyone know what is going on? Thanks.