Block access to files during certain hours of the day

Here, I wrote the article about how to block access to files during certain hours of the day via htaccess. Using below code you can block the access to file during specified time.