From aeae095e3eb088c19d3bb6a218b3641ab8be870d Mon Sep 17 00:00:00 2001 From: Martin Moeller Date: Tue, 17 Nov 2020 09:25:48 +0100 Subject: [PATCH] Remove seconds from worklog (ical2txt.py) --- ical2txt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ical2txt.py b/ical2txt.py index 9cba6a3..71da0d2 100755 --- a/ical2txt.py +++ b/ical2txt.py @@ -119,7 +119,7 @@ def txt_write(icsfile): hours = divmod(ds, 3600)[0] minutes = divmod(ds,3600)[1]/60 description=removehtml(event.description.encode('utf-8').decode()) - values = event.start.strftime("%H:%M:%S") + " - " + event.end.strftime("%H:%M:%S") + " (" + '{:02.0f}'.format(hours) + ":" + '{:02.0f}'.format(minutes) + ") " + event.summary.encode('utf-8').decode() + values = event.start.strftime("%H:%M") + " - " + event.end.strftime("%H:%M") + " (" + '{:02.0f}'.format(hours) + ":" + '{:02.0f}'.format(minutes) + ") " + event.summary.encode('utf-8').decode() if event.location != '': values = values + " [" + event.location + "]" # Only include location if there is one # Remove Google Meet and Skype Meeting part of description