Skip to content

[Question] Tidying up a calendar (.ics file) #710

Description

@joho1968

( Somewhat similar to #322 )

  1. I'm reading an .ics file using VObject\Reader::read()
  2. I want to clone the calendar object and its metadata
  3. I want to keep only specific events based on certain criteria

Would the fastest and most correct way be to iterate through the ->VEVENT objects/items and remove those I don't want, as outlined in #322, and then write everything back out again (to disk). Or is there a better way? 🤔

I don't really want to re-create the "entire calendar" and risk missing to copy something from the original.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions