]>
git.rmz.io Git - dotfiles.git/blob - mutt/ical2txt
3 from icalendar
import Calendar
6 start
= event
.get('dtstart').dt
7 end
= event
.get('dtend').dt
8 str = "Start: {:%Y-%m-%d %H:%M}\n".format(start
.astimezone())
9 str += "End: {:%Y-%m-%d %H:%M}\n".format(end
.astimezone())
11 description
= event
.get('description')
12 if description
is not None:
18 with open('/dev/stdin', 'r') as f
:
19 cal
= Calendar
.from_ical(f
.read())
22 if c
.name
== "VEVENT":