I don’t know if I did it quite right, but I try to not look at the answers here in the forums.
I’m curious if this is how someone would have done it. Thanks
int main(int argc, const char * argv)
// insert code here... long secondsSince1970 = time(NULL) + 4000000; printf("It has been %ld seconds since 1970 + 4,000,000 more seconds.\n",secondsSince1970); struct tm now; localtime_r(&secondsSince1970, &now); printf("The date is %d-%d-%d is 4,000,000 seconds in the future\n", now.tm_mon, now.tm_mday, now.tm_year + 1900); return 0;
Thanks for any help.