Coder Social home page Coder Social logo

Comments (6)

dbuxton avatar dbuxton commented on August 22, 2024

This seems really hard (to me, without any idea as to whether there is decent support in icalendar for parsing these events). Also I would query whether or not it's really appropriate for a proper response schedule - the whole point is that these need to be modified to take account of holidays, anniversary plans, travel, etc.

What's the use case here?

from cabot.

ipmb avatar ipmb commented on August 22, 2024

It's easier to set a schedule and exclude dates instead of manually adding an item for every day of the year. Doing it manually also increases the risk of human error. Sample use case:

ipmb is typically on duty M-F excluding March 27-28, 2014 because vacation/travel/etc.

I can create the recurring event in Google calendar and then delete a single (or multiple occurrences).

That looks like this in the .ics:

BEGIN:VEVENT
DTSTART;TZID=America/Mexico_City:20140305T100000
DTEND;TZID=America/Mexico_City:20140305T150000
RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
EXDATE;TZID=America/Mexico_City:20140328T100000
EXDATE;TZID=America/Mexico_City:20140327T100000
DTSTAMP:20140314T152657Z
UID:[email protected]
CREATED:20140306T042702Z
DESCRIPTION:
LAST-MODIFIED:20140313T231344Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:ipmb
TRANSP:OPAQUE
END:VEVENT

Notice RRULE and EXDATE.

from cabot.

ipmb avatar ipmb commented on August 22, 2024

It looks like python-dateutil has good support for rrule. I'll try to dig in further.

from cabot.

dbuxton avatar dbuxton commented on August 22, 2024

I also found https://pypi.python.org/pypi/pyICSParser - according to this SO question it should help.

from cabot.

ipmb avatar ipmb commented on August 22, 2024

I have something that seems to work here. I'll do some more testing and submit a proper pull request. lincolnloop/cabot@python-package...recurring-events

from cabot.

JeanFred avatar JeanFred commented on August 22, 2024

Closing this per #396

from cabot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.