[code]int main (int argc, const char * argv)
long secondsSince1970 = time(NULL);
long dateAfter4Million = secondsSince1970 + 4000000;
struct tm calDate; localtime_r(&dateAfter4Million, &calDate); printf("The date after 4 million seconds is %d-%d-%d\n", calDate.tm_mon +1 , calDate.tm_mday, calDate.tm_year + 1900); return 0;
So for struct tm CalDate; we declared a struct and named it CalDate, correct?
now what does this line mean? localtime_r(&dateAfter4Million, &calDate);
and what does the & sign mean?