How do I export a selection from the timeline?

On the timeline the i and o keys trim the video to the play head. Depending on which video or audio track is selected.

Shift+I trims the video and pulls the clip left, to the play head.

This thread might help make it more clear.