Skip to content

Commit 37285cb

Browse files
committed
Add a docstring to satisfy pylint
1 parent aeba5e6 commit 37285cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci/download_gha_artifacts.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ def unpack_zipfile(filename):
2828
z.extract(name)
2929

3030
def utc2local(timestring):
31+
"""Convert a UTC time into local time in a more readable form.
32+
33+
For example: '20201208T122900Z' to '2020-12-08 07:29:00'.
34+
35+
"""
3136
dt = datetime.datetime
3237
utc = dt.fromisoformat(timestring.rstrip("Z"))
3338
epoch = time.mktime(utc.timetuple())

0 commit comments

Comments
 (0)