General approach: Turn the struct tm into a timestamp (64bit int) and then add millis/1000.
time_t totalseconds = mktime(&result) + (millis / 1000);
You can then use the functions from C's time API to convert the time stamp back to struct tm
.