kopia lustrzana https://github.com/friendica/SG-iCalendar
Added a getDuration method to SG_iCal_VEvent
rodzic
4b306bf68d
commit
e6878d3281
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue