Hi frnds,
I have written a code to get current time
struct tm *locTime;
time_t currentTime;
time( ¤tTime );
locTime = localtime(¤tTime );
Suppose now i get output time as 31-DEC-2007 00:00:00
What i want now is i want two strings where in one string i want to subtract time to 2 hours that is one string should have value as 30-DEC-2007 22:00:00 and other string should have value 26 hours less that is 23-DEC-2007 22:00:00
I tried some cases where in i subtracted value but it was not working.Is there a way out for this