Skip to content

Commit

Permalink
Add a docstring to satisfy pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Dec 8, 2020
1 parent aeba5e6 commit 37285cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/download_gha_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 37285cb

Please sign in to comment.