skyfielders / python-skyfield

Elegant astronomy for Python
MIT License
1.43k stars 213 forks source link

Time.utc_strftime() method; date formatting string not working for "%A" or "%a". #335

Closed ghost closed 4 years ago

ghost commented 4 years ago

I have installed "SkyField" (version 1.16) on a Raspberry Pi model 4B.

When I use the method Time.utc_strftime() with the following date formatting string "%A %-d %B %Y @ %H:%M:%S %Z" the result for the "%A" (ie. the day of the week) is always "Monday", ditto for "%a" as "Mon".

brandon-rhodes commented 4 years ago

Oh, look at that. There's no day-of-week computed in the code — apparently it never occurred to me that someone would try printing it! I'll see if I can get that fixed.

brandon-rhodes commented 4 years ago

There we go, fixed! I'll see if I can get a release out by the end of the weekend.

ghost commented 4 years ago

I am amazed at your quick response. Many Thanks.