I\'m having trouble understanding this program, namely the tm_mon +1
part.
I am new to C and I normally always write my own little programs for any challeng
Take a look at the following table. As you can see tm_mon is a value from 0=january to 11=december.
'*' tm_sec is generally 0-59. The extra range is to accommodate for leap seconds in certain systems.
EDIT
Then in your case without +1 in case of date 1/1/2015 the real output will be
The date in 4,000,000 seconds will be 0/1/2015
With +1 will propel output
The date in 4,000,000 seconds will be 1/1/2015