I have an outside patio light that is operated by a wall switch. Whats the best way to attach a timer?

The outside light is integrated into the ceiling overhang. Ideally i'm looking for some kind of timer thingy that i can attach to the wall switch. Any suggestions?