Hi All
How do i get the current date in "yyyy/mm/dd hh:mm:ss" format? And how do I get the time difference between two dates?I want to get the difference in hours
Look at the time.h header file. It has functions asctime, clock, ctime, difftime, gmtime, localtime, mktime, randomize, stime, _strdate, strftime, _strtime, time, and tzset
Sounds like you want difftime which calcs the difference in times by seconds.
Borland also a date.h header for dates. There are also some precompile headers that include both functions.
James P. Cottingham
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.