A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/007949.html below:

[Python-Dev] strftime()

[Python-Dev] strftime()Tim Peters tim_one@email.msn.com
Sun, 6 Aug 2000 01:07:27 -0400
[Jack Jansen]
> The test_strftime regression test has been failing on the Mac for
> ages, and I finally got round to investigating the problem: the
> MetroWerks library returns the strings "am" and "pm" for %p but the
> regression test expects "AM" and "PM". According to the comments in
> the source of the library (long live vendors who provide it! Yeah!)
> this is C9X compatibility.

My copy of a draft C99 std agrees (7.23.3.5) with MetroWerks on this point
(i.e., that %p in the "C" locale becomes "am" or "pm").

> I can of course move the %p to the nonstandard expectations, but maybe
> someone has a better idea?

Not really.  If Python thinks this function is valuable, it "should" offer a
platform-independent implementation, but as nobody has time for that ...





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4