Skip to content

Commit

Permalink
Document that utc_strftime() can't support %Z
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed Oct 5, 2024
1 parent 04d6a63 commit f9249d5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions skyfield/timelib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f9249d5

Please sign in to comment.