[Python-ideas] Reduce platform dependence of date and time related functions
Andrew Barnert
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...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130919/6e7f5a21/attachment-0001.html>
More information about the Python-ideas
mailing list