How come the two dates printed out by this program are the same? :(
Code:#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
time_t t, t2;
struct tm* current_time, *other_time;
time(&t);
t2 = t + (11 * 24 * 60 * 60);
current_time=gmtime(&t);
other_time=gmtime(&t2);
printf("%d %d %d\n", current_time->tm_mon, current_time->tm_mday, current_time->tm_year+1900);
printf("%d %d %d\n", other_time->tm_mon, other_time->tm_mday, other_time->tm_year+1900);
return 0;
}