I have a loop which runs in php..
I only want the loop to run if the local (sydney, australia) time is between 1pm and 3pm.
Can anyone provide an example of how this would function? Thank you!
Put
if (date('H') == 13 || date('H') == 14)
above the loop.
(Given that your webserver is set to your local time.)