difftime() returning incorrect value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aramakri
    New Member
    • Dec 2007
    • 9

    difftime() returning incorrect value

    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
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    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

    Working...