Hours, minutes
e.g. 9.3 => 9.5
public static standardToDecimalTime ( integer $value ) : float | ||
$value | integer | |
return | float |
/** * 9.30 => 9.50 * * @return void */ public function testStandardDecimal() { //echo $this->_header(__FUNCTION__); $value = '9.30'; $is = $this->Time->standardToDecimalTime($value); $this->assertEquals('9.50', round($is, 2)); $value = '9.3'; $is = $this->Time->standardToDecimalTime($value); $this->assertEquals('9.50', round($is, 2)); }