cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Need to take difference between two date
Need to take difference between two dates using time_t
Mar 31, 2012 at 7:08am UTC
sharath137
(12)
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.....
Mar 31, 2012 at 1:11pm UTC
JLBorges
(13770)
See
std::mktime()
http://en.cppreference.com/w/cpp/chrono/c/mktime
and
std::difftime()
http://en.cppreference.com/w/cpp/chrono/c/difftime
Topic archived. No new replies allowed.