shows time filled in show, with progress bar and time.

This commit is contained in:
naomiaro 2011-01-15 18:23:15 -05:00
parent 25c7d4cb90
commit 86a4998e0a
5 changed files with 59 additions and 8 deletions

View file

@ -556,6 +556,15 @@ class Show {
return $event;
}
public function getShowLength($start_timestamp, $end_timestamp){
global $CC_DBC;
$sql = "SELECT TIMESTAMP '{$end_timestamp}' - TIMESTAMP '{$start_timestamp}' ";
$length = $CC_DBC->GetOne($sql);
return $length;
}
public function searchPlaylistsForShow($start_timestamp, $search=null){
global $CC_DBC;