Does anyone know how could I manipulate dates and times and time spans in an ATL COM AppWizard generated project (SERVICE (.exe)) ??
I tried COleDateTime but it is NOT recognized!!!
Try using the time functions from the C Runtime library. Things like time() and difftime() can be used to calculate the timespans and localtime() will convert to a structure for ease of detecting the pieces.
Most of these functions return a time_t datatype which is the number of seconds since midnight 1/1/1970. Unless you're doing something out of the ordinary or need sub-second precision, these functions should be able to work nicely.
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.