早上好,我想创建一个全天持续的事件,但不希望看到时间从 00:00 到 00:00。我在网上搜索了一下,但无法正确地显示它...谢谢。
def ics_free():
event = Event()
event['uid'] = f'19970610T172345Z-AF23B2@{dayclnd}{monthclnd}{yearclnd}'
event.add('summary', f'{tagesinfo}')
event.add('description', f'{tagesinfo}')
event.add('dtstart', datetime(yearclnd,monthclnd,dayclnd))
event.add('dtend', datetime(yearclnd,monthclnd,dayclnd))
event.add('dtstamp', datetime(yearclnd,monthclnd,dayclnd))
event.add('priority', 5)
event.allday = True
organizer = vCalAddress(f'MAILTO:{receiver_email}')
organizer.params['cn'] = vText(f'{username} Monatsplan')
organizer.params['role'] = vText(f'{username} Monatsplan')
event.add('priority', 5)
# Adding events to calendar
cal.add_component(event)
ics_free()
DTSTART;VALUE=DATE:20020923 DTEND;VALUE=DATE:20020924
- anmari