Skip to content

Instantly share code, notes, and snippets.

@gaucheph
gaucheph / seths_tool_v2.py
Last active March 17, 2017 14:07
Generates list of dates at specific intervals before a given date then creates an *.ics file with those dates as events
from datetime import date, datetime, timedelta
from icalendar import Calendar, Event
import tempfile, os, pytz
# DEFINITION ####################
class SymphonySchedule:
def __init__(self, name, deadline, schedule_events=[]):
self.name = name
self.deadline = deadline
self.schedule_events = schedule_events