Quote:
Originally Posted by fkatzenb
I am trying to figure out a way to have a dynamic message for all people that only displays between two different server times... Is there a variable that I can use similar to the linux data function to pull hours and minutes from to allow me to show a message between 9:50am and 10:30am?
Thanks!
Frank
|
I just figured out what to do
edited functions_dfha.php and added
PHP Code:
// time variables...
$time_hour = date("H");
$time_minute = date("i");
$time_zone = date("T");
Code:
[[($time_hour==3 AND $time_minute>=45 AND $time_minute<=59)]]
The server is schedule to do perform a daily backup between 0345 CST and 0430 CST. Current Server Time is $time_hour$time_minute $time_zone
[[/($time_hour==3 AND $time_minute>=45 AND $time_minute<=59)]]
[[($time_hour==4 AND $time_minute>=0 AND $time_minute<=29)]]
The server is schedule to do perform a daily backup between 0345 CST and 0430 CST. Current Server Time is $time_hour$time_minute $time_zone
[[/($time_hour==4 AND $time_minute>=0 AND $time_minute<=29)]]