All pastes #390985 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-03-11 20:30 UTC
rendered paste body
// $show_minute_len is how minutes the tv show is time, like 54 minutes.... (int)

$ts_timenow=strtotime("now"); // time now
$s_start=$ts_show_start; // timestamp of the show when its started
$s_end=$ts_show_start+($show_minute_len*60); // timestamp its ends 

if (($s_end-$ts_timenow)<0) { $ShowProgress="100"; };

// i want to make precent how mutch of the show is running...