iphone 3gs v3.x

Is there an app that you could make that would allow me to turn off bluetooth/wifi etc… based on certain times? Example, I do not need bluetooth or wifi while i am at work, but would love bluetooth to turn on at 5pm, and wifi at 6pm. 5pm being when i leave work and get into car and 6pm being when i walk in door at home. Same with time I leave… no need for services to be running when I do not need them and i forget to turn them off.

Does anything out there exist? I know the G1 has something called locale that does by gps but I think they incorporated for time now.

cronjob maybe would work?