Guyz i need an API for finding diff in time in minutes and days as fast as possible . if anybody has it and can provide me i wud be greatfull
shirish_kal -6 Newbie Poster
Recommended Answers
Jump to PostThere is no standard function for that -- you will have to write your own. You could have written it yourself in the time that it took for me to post this response (5 hours).
Jump to PostIts been 8 hours now and you still have not started writing the code yet! All you have to do is get the two date/times as time_t object, subtract them. The result is the difference in seconds. From that you can easily convert to minutes, hours, days, years, decades or …
Jump to Postshirish: Also be aware that, for Microsoft compilers, the functions in time.h do not work with dates prior to 1970. Here is a good article how to get around that on MS-Windows …
All 10 Replies
shirish_kal -6 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
shirish_kal -6 Newbie Poster
jephthah 1,888 Posting Maven
shirish_kal -6 Newbie Poster
shirish_kal -6 Newbie Poster
jephthah 1,888 Posting Maven
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
jephthah 1,888 Posting Maven
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.