I would like to show year as 9999 instead 1999, I am using mktime and ctime, it always shows only 1900 range, can't able to change year only to 9999, How can I change year to 9999 instead1999?. Thanks in advance.
#include
> #include
> int main(void)
> {
> struct tm t = { 0, /* seconds */
> 30, /* minutes */
> 8, /* hours since midnight */
> 1, /* day of month */
> 6, /* months since January */
> 99, /* years since 1900 */
> 0, /* day of week (reset by mktime) */
> 0, /* day of year (reset by mktime) */
> 0}; /* daylight/standard switch */
> time_t c;
> c = mktime(&t);
> printf("%s\n", ctime(&c));
> return 0;
> }