Hi ALL, I am trying to get the timing exactly 2 days diff from current time.please advice i am not getting it correctly. here is my code (-2 does not work)
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
int main() {
time\_t current\_time;
char\* c\_time\_string;
current\_time = time(NULL);
current\_time = current\_time -2
/\* Convert to local time format. \*/
c\_time\_string = ctime(¤t\_time);
printf("Current time is %s", c\_time\_string);
return 0;
}