End Recording Early

It would be great to be able to end a recording early, for example after 30min, or 30min from the published end time. E.g. for late night shows where you only watch the opening.