You are here

function pChart::ToTime in Visitors 7.0

Same name and namespace in other branches
  1. 8 pchart/pChart.inc \pChart::ToTime()
1 call to pChart::ToTime()
pChart::drawScale in pchart/pChart.inc

File

pchart/pChart.inc, line 2595

Class

pChart

Code

function ToTime($Value) {
  $Hour = floor($Value / 3600);
  $Minute = floor(($Value - $Hour * 3600) / 60);
  $Second = floor($Value - $Hour * 3600 - $Minute * 60);
  if (strlen($Hour) == 1) {
    $Hour = "0" . $Hour;
  }
  if (strlen($Minute) == 1) {
    $Minute = "0" . $Minute;
  }
  if (strlen($Second) == 1) {
    $Second = "0" . $Second;
  }
  return $Hour . ":" . $Minute . ":" . $Second;
}