Calculate event length in php

Hello Team,

what are ways to calculate event_length

  1. for recurring event
  2. updaing occourenec of recurring event
  3. for normal event
    in php only

Thanks
Jitendra kumar

For normal event you can

  • read record for DB
  • convert both start and end dates to timestamps
  • get event legth in seconds as end_timestamp - start_timestamp

For recurring events, you can use event_length property, which stores event length in seconds