toString() public méthode

Returns an integer representation of the time.
public toString ( ) : integer
Résultat integer
Exemple #1
0
 public function testToString()
 {
     $time = new Time('20', '30');
     $this->assertEquals('20:30:00', $time->toString());
     $time = new Time('9', '8', '7');
     $this->assertEquals('09:08:07', $time->toString());
     $time = new Time(9, 8, 7);
     $this->assertEquals('09:08:07', $time->toString());
 }
Exemple #2
0
 public function testToString()
 {
     $time = new Time('20', '30');
     $this->assertEquals('20:30', $time->toString());
 }