This wiki post explains how to do it with a virtual switch as the off timer.
http://thingsthataresmart.wiki/index.php?title=How_to_create_a_virtual_timer_for_a_light
And this post covers pretty much anything else related to creating automations. This could be done easily with WebCoRE, for example.