array('A','B','C'), //Crew designators in order starting at EPOCH 'timeZone' => 'America/New_York', //Local Time Zone 'startTime' => '07:30' //Shift start time in 24-hour format ]; //*********************************************************************************** require 'shiftCycle.php'; $shiftCycle = new shiftCycle($conf); echo "Local Timestamp: " . $shiftCycle->timestamp . "
"; echo "Whole days since EPOCH: " . $shiftCycle->daysSince . "
"; echo "Cycles since EPOCH: " . $shiftCycle->cyclesSince . "
"; echo "Day in cycle: " . ($shiftCycle->cyclePart + 1) . "
"; echo "Crew on duty: " . $shiftCycle->currentShift . "
"; ?>