getHours() public méthode

Get hours based on current date.
public getHours ( null | string $format = null ) : string
$format null | string A valid hour format.
Résultat string Hours based on current date.
 public function testGetHours()
 {
     $dt = new DateTimeObject('14.02.2013 14:33:18');
     $this->assertSame("14", $dt->getHours());
 }