I have a DIV on a page that I wanted to show only on Thursdays between 7pm and 8pm (local time) on a site. I made a post a while back and found my answer for that. Previous Post Here.
I was using this code to do so:
if( date('l') == "Thursday" && date('G') >= 19 && date('G') < 20 )
However now I need to show the div from 6:59:30 to 8:01pm (server time) and I’m not quite sure how I would format the statement above for that?
This would need to run weekly for an indefinite time until I remove the code.
You should check out the php date manual for clarification: http://php.net/manual/en/function.date.php