Added a getDuration method to SG_iCal_VEvent

master
fangel 2008-03-01 08:59:29 +00:00
rodzic 4b306bf68d
commit e6878d3281
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -122,6 +122,14 @@ class SG_iCal_VEvent {
return $this->end;
}
/**
* Returns the duration of this event in seconds
* @return int
*/
public function getDuration() {
return $this->end - $this->start;
}
/**
* Calculates the timestamp from a DT line.
* @param $line SG_iCal_Line