convertTo() публичный статический Метод

Convert the given time from the given unit to the given destination unit.
public static convertTo ( $time, $unit, $destUnit ) : integer
Результат integer
Пример #1
0
 /**
  * @expectedException InvalidArgumentException
  * @expectedExceptionMessage Expected string value
  */
 public function testInvalidUnitType()
 {
     TimeUnit::convertTo(100, new \stdClass(), TimeUnit::MINUTES);
 }