Scripting/Advanced scheduling

Hello all,

I have been asked to make a 2011 turn the local wireless interface on and off according to a businesses office hours, and example being Open (Wireless on) M-T 9AM to 5 PM, Wed 8AM to 12PM, Th-F 9AM to 5PM, Sat 8AM to 2 PM, Sunday Closed.

This appears to be too advanced for the scheduler, so I am thinking that a looping script checking the time and turning the interface on and off according to the current time, the problem being figuring out the day of the week from the local date on the 2011 and so forth.

Before I start tackling this has anyone else had to do anything similar?

Any insights would be appreciated.