diff options
Diffstat (limited to 'ci/download_gha_artifacts.py')
-rw-r--r-- | ci/download_gha_artifacts.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ci/download_gha_artifacts.py b/ci/download_gha_artifacts.py index 27da289b..ac9d4790 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()) |