i have a button it should work on from 09.00 Am to 04.00 pm and rest of time it should not work : i have a button it should work according to time from 09.00 Am to 04.00 pm and rest of time it should not work.

 i am developing an app. i am new in android.... i have three buttons namely register, events, gallery. 

 when i click register button it should work according to time mentioned above...
if the user click register on  that time it should pass on to the next activity....  and rest of times the button  click action should not work.... i am stuck in this... plz help for me.....