Need to take difference between two dates using time_t

I need to take difference between two dates in normal date format like "2012-03-30 17:21:33.027" using time_t..previously i was using unix timestamp so i used data type long int...but i need to know how to compare using time_t...

plz help.....
Topic archived. No new replies allowed.