Hi, I am using difftime() to compare two time_t values.If the difference between the two time_t values is 6, difftime() returns 3606.
Can anybody tell me where I am doing a mistake
It is unlikely that difftime is wrong (unless you are using some little known and new platform) therefore the mistake is probably in your code, since you haven't posted your code that is rather hard for us to diagnose but I would be interested to know your process for asserting that the difference is 6, did you print out the 2 values being compared?
Comment