duration() public method

Return the duration of the event.
public duration ( ) : integer
return integer The duration (in seconds) of the event.
コード例 #1
0
ファイル: EventTest.php プロジェクト: jubinpatel/horde
 public function testDuration()
 {
     $event = new Horde_Kolab_FreeBusy_Object_Event(array('start-date' => new Horde_Date('2011-11-11T11:11:00Z'), 'end-date' => new Horde_Date('2011-11-11T11:11:11Z')));
     $this->assertEquals(11, $event->duration());
 }