Show block based on day and time
Last modified: September 30, 2009 - 20:02
You can specify the day and time a block should be shown as follows:
<?php
$time = (int) date('Gi');
return (date('D') == 'Mon' && $time >= 800 && $time <= 1600);
?>This would display the block every Monday between 8am and 5pm. You can adjust the day and time accordingly using any of php's date and time functions.
Based on http://drupal.org/node/320621.
