From 37285cba3f81fda91e7208c0e3cb56f6a8ea4ddc Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 8 Dec 2020 07:31:48 -0500 Subject: [PATCH] Add a docstring to satisfy pylint --- ci/download_gha_artifacts.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/download_gha_artifacts.py b/ci/download_gha_artifacts.py index 27da289bf..ac9d47907 100644 --- a/ci/download_gha_artifacts.py +++ b/ci/download_gha_artifacts.py @@ -28,6 +28,11 @@ def unpack_zipfile(filename): z.extract(name) def utc2local(timestring): + """Convert a UTC time into local time in a more readable form. + + For example: '20201208T122900Z' to '2020-12-08 07:29:00'. + + """ dt = datetime.datetime utc = dt.fromisoformat(timestring.rstrip("Z")) epoch = time.mktime(utc.timetuple())