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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions