Initial proof of concept for time remaining smart block limit
This commit is contained in:
parent
6031d95351
commit
c759f8b8aa
4 changed files with 33 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue