[Python-ideas] Reduce platform dependence of date and time related functions
abarnert at yahoo.com
Fri Sep 20 00:00:27 CEST 2013
On Sep 19, 2013, at 10:57, Alexander Belopolsky <alexander.belopolsky at gmail.com> wrote:
> On Thu, Sep 19, 2013 at 12:07 PM, Andrew Barnert <abarnert at yahoo.com> wrote:
>> If you're suggesting renaming platform-dependent locale-handling strftime to strftime_l, ...
> I was thinking of changing datetime.strftime(fmt) signature to strftime(fmt, locale=None) with default behavior being the same as now and d.strftime(fmt, "C") invoking new internal C-locale implementation.
But that API implies that you could call, e.g., d.strftime(fmt, "pt_BR"), which I assume isn't something anyone is planning on implementing.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas