All you need is create a new (e.g. linear) time ramp that covers both time ranges at sufficient resolution, then interpolate both datasets against it.
Here is a quick draft.
Alternatively, you could also append the original two time arrays, sort them, and remove all duplicates to generate the new time ramp.