[Python-ideas] Reduce platform dependence of date and time related functions
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas