date_default_timezone_set('Europe/London');
echo('');
/*
print(Date("l"));
echo(' ');
print(Date("F d, Y"));
echo(' ');
echo(' ');
*/
$hour=Date("G");
$minute=Date("i");
$Beat=Date("B");
/*
echo ".Beat Time is ". $Beat ." ";
echo "Real Time is ". date("H:i:s") ." " ;
*/
if ($Beat < 361)
{
echo("Before School");
}
if ($Beat >=361 && $Beat < 375)
{
echo("Registration");
}
if ($Beat >=375 && $Beat < 410)
{
echo("Period 1");
}
if ($Beat >=410 && $Beat < 444)
{
echo("Period 2");
}
if ($Beat >=444 && $Beat < 455)
{
echo("Morning Break");
}
if ($Beat >=455 && $Beat < 489)
{
echo("Period 3");
}
if ($Beat >=489 && $Beat < 524)
{
echo("Period 4");
}
if ($Beat >=524 && $Beat < 566)
{
echo("Lunch");
}
if ($Beat >=566 && $Beat < 569)
{
echo("Registration");
}
if ($Beat >=569 && $Beat < 604)
{
echo("Period 5");
}
if ($Beat >=604 && $Beat < 639)
{
echo("Period 6");
}
if ($Beat >=639)
{
echo("After School");
}
echo('');
?>
I worked out the @Beats from Internet Time - Swatch® International, the conversion is to about +/- 40 seconds which is good enough for me. PeriodFiles.zip