Initial proof of concept for time remaining smart block limit

This commit is contained in:
Robbt 2018-11-24 17:08:39 -05:00
parent 6031d95351
commit c759f8b8aa
4 changed files with 33 additions and 7 deletions

View file

@ -476,6 +476,12 @@ SQL;
return intval($ends->format('U')) - intval($starts->format('U'));
}
// should return the amount of seconds remaining to be scheduled in a show instance
public function getSecondsRemaining()
{
return ($this->getDurationSecs() - $this->getTimeScheduledSecs());
}
public function getPercentScheduled()
{
$durationSeconds = $this->getDurationSecs();