Your fundamental problem is that mktime() expects a pointer to struct tm as an argument not a bunch of integers. You need to build up a struct tm and then send this in:
First declare a struct tm then populate it.
struct tm t;
time_t seconds = 0;
t.tm_sec = SEC % 61;
t.tm_min = MIN % 60;
t.tm_hour = HR % 24;
t.tm_mday = DATE % 32;
t.tm_mon = MTH - 1 /* 0 - 11 */
t.tm_year = YEAR; /* year - 1900 */
t.tm_wday = t.tm_yday = 0; /* ignored */
t.tm_isdst = -1; /* This will may the system decide */
seconds = mktime(&t);
(void) printf("%ld\n",seconds);
If it ain't broke, I can fix that.