From f9249d5bd2d2df0d71781fb4006523432ad0566d Mon Sep 17 00:00:00 2001 From: Brandon Rhodes Date: Sat, 5 Oct 2024 05:00:30 -0400 Subject: [PATCH] Document that `utc_strftime()` can't support %Z Fixes #1006. --- skyfield/timelib.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/skyfield/timelib.py b/skyfield/timelib.py index 332f6cf3e..688f3e175 100644 --- a/skyfield/timelib.py +++ b/skyfield/timelib.py @@ -631,10 +631,8 @@ def utc_strftime(self, format='%Y-%m-%d %H:%M:%S UTC'): * ``%S`` second * ``%A`` day of week, ``%a`` its abbreviation - You can find the full list, along with options that control - field widths and leading zeros, at: - - https://docs.python.org/3/library/time.html#time.strftime + The ``%Z`` and ``%z`` formats are not supported; instead, simply + use the literal characters ``'UTC'`` in your format string. If the smallest time unit in your format is minutes or seconds, then the time is rounded to the nearest minute or second.