[Python-ideas] Reduce platform dependence of date and time related functions

Alexander Belopolsky alexander.belopolsky at gmail.com
Tue Sep 17 19:41:45 CEST 2013

On Tue, Sep 17, 2013 at 1:02 PM, Brett Cannon <brett at python.org> wrote:

> As you pointed out, getting the locale details is essentially not possible
> in a cross-platform way unless you use strptime or strftime, so you have to
> choose which is implemented in Python and relies on the other.

What we can do is to implement "C" locale behavior.  In fact, in many uses
of strftime() its locale-dependence is a problem.  I would much rather have
strftime_l()-like function and "C" locale implemented in stdlib.  This is
somewhat similar to the situation we have with timezone support: include
utc timezone and leave it to third parties to supply interfaces to platform
tz databases.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130917/fec3f976/attachment-0001.html>

More information about the Python-ideas mailing list