Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #4602

Re: [Python-de] Datetime frage

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Stefan Schwarzer <sschwarzer@sschwarzer.net>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] Datetime frage
Date Sun, 11 Dec 2016 21:03:41 +0100
Lines 28
Message-ID <mailman.14.1481486937.2322.python-de@python.org> (permalink)
References <o2k666$fir$1@tota-refugium.de> <D753C3B7-21FF-42C0-B27F-392E291E17E1@zopyx.com> <mailman.9.1481482819.2322.python-de@python.org> <o2k8tc$hms$1@tota-refugium.de> <a31f4d7d-d4bc-8d9b-c698-2c40feddfa8a@sschwarzer.net>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de qmAOOk2M3zHvFEilNULR4Qm/xnzpJsupydfIziC0gygQ==
Return-Path <sschwarzer@sschwarzer.net>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.24) Gecko/20100411 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666
In-Reply-To <o2k8tc$hms$1@tota-refugium.de>
X-Provags-ID V03:K0:VV2lwq7fvFvP+fkCTq2J5PJMty4COOt/1adqDZF0FVzYbbyeYgF TTabHTwCyUNmEoRYE5BeRwnu/pl1nrS4GwYihWDhmbt5mBCNvoxokhvFDnBsxTyx29LVdSu /hBqMaa3NfihP/f/OAGzi4IP4VPndLKVFG8ec2dDI38+M+b0XPTGV346Xesun0kYV72olii jAdsqbtC1IxR7U4JSNA6w==
X-UI-Out-Filterresults notjunk:1;V01:K0:m/aRll5OWSo=:gppMfDkpdJ3InsW0S2Bk5C lpLDZOYXpbbyCihB96K9Otp8Q4H2FlM+hOwEQdLjJ6tlyM3GEc/ijsPZ5UwBkyXMakl8MtYSP TUFxPbicyxdUFcR5qnHhwlCggLsE1AxkUm71LalNmIDHMQRuYE0M2RWN240xqHBSevezwdIZE FaF+h8PpaV1KkYoeaxOE6HtV8Lpuux7AMSSL+3XRaZ9YfbssNrHV6w3aHq0J2TRgMnNU+feik DST2x13jzLxi9fDzPA31FSpAHtf2Ml0uG1KeJ6XwBXowBy3ynP/HpYE5HCkAjSt2AcZegyb0v FeN3MFtwK4Q+SDKcQaU0R8NmUVO3QvltrucziwDTio44PHQPluQF46ILmUjxrR+FIgs851RA+ H6Qb4gh9SoY6ZF94SNsXpRXO0IIAYLhyQ3Q8KNWN9UQFT1WmRBuPsl7mOIx8E1S2MDe7ELJx8 rr5nWNVf3Ayx3474Nh/I/xOoOKbDZAwGTLAxePjIYe4wFOuryRptGnkJeHz5q4J1tGfI3ELJF oiC8xKDrKyUEVRx36TaqqVMVY0yI4XE7wsooJjw62au0J8+6GobH4JsRd0jyMgrreQLoYo7WP xlPFDum8R54N9aWLtPXQ9JyMAhgdgdgopKGq9x0nyQWab42p+uZLL5zlIEPGwTUQMjQ0PjNnm yLfMwuupoOAfS3KwSGYjx/O6zmFgpSqnABKOug+9UmtET+1N9aTVRJR3yahah5eFByKY8hYT4 J2G/NvzpTPzoka7a
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <a31f4d7d-d4bc-8d9b-c698-2c40feddfa8a@sschwarzer.net>
X-Mailman-Original-References <o2k666$fir$1@tota-refugium.de> <D753C3B7-21FF-42C0-B27F-392E291E17E1@zopyx.com> <mailman.9.1481482819.2322.python-de@python.org> <o2k8tc$hms$1@tota-refugium.de>
Xref csiph.com de.comp.lang.python:4602

Show key headers only | View raw


Hallo Manfred,

On 2016-12-11 20:20, Manfred Gil wrote:
> Am Sun, 11 Dec 2016 19:39:55 +0100 schrieb Andreas Jung:
>
>> import datetime as dt import locale locale.setlocale(locale.LC_ALL,
>> 'de_DE')
>
> Hallo Andreas
>
> folgende Fehlermeldung:
>
>  File "DatumsTest_2.py", line 29, in <module>
>     locale.setlocale(locale.LC_ALL,'de_DE')
>   File "/usr/lib/python3.4/locale.py", line 592, in setlocale
>     return _setlocale(category, locale)
> locale.Error: unsupported locale setting
>
> IMHO sind die Locale bei mir alle richtig gesetzt.

Probier mal

  locale.setlocale(locale.LC_ALL, "de_DE.utf8")

(also mit Angabe des Encodings). Hilft das?

Viele Grüße
Stefan

Back to de.comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Datetime frage Manfred Gil <manfred-gil@t-online.de> - 2016-12-11 18:33 +0000
  Re: [Python-de] Datetime frage "Andreas Jung" <lists@zopyx.com> - 2016-12-11 19:39 +0100
    Re: [Python-de] Datetime frage Manfred Gil <manfred-gil@t-online.de> - 2016-12-11 19:20 +0000
      Re: [Python-de] Datetime frage "Andreas Jung" <lists@zopyx.com> - 2016-12-11 20:29 +0100
        Re: [Python-de] Datetime frage Hans-Georg Joepgen <test@joepgen.com> - 2016-12-11 20:49 +0100
          Re: [Python-de] Datetime frage "Andreas Jung" <lists@zopyx.com> - 2016-12-11 20:56 +0100
      Re: [Python-de] Datetime frage Christopher Arndt <chris@chrisarndt.de> - 2016-12-11 20:53 +0100
      Re: [Python-de] Datetime frage Stefan Schwarzer <sschwarzer@sschwarzer.net> - 2016-12-11 21:03 +0100
        Re: [Python-de] Datetime frage Manfred Gil <manfred-gil@t-online.de> - 2016-12-12 18:01 +0000
          Re: [Python-de] Datetime frage Arnold Krille <arnold@arnoldarts.de> - 2016-12-12 21:04 +0100
      Re: [Python-de] Datetime frage Achim Herwig <python@wodca.de> - 2016-12-11 21:03 +0100
        Re: [Python-de] Datetime frage Manfred Gil <manfred-gil@t-online.de> - 2016-12-12 18:04 +0000
          Re: [Python-de] Datetime frage Achim Herwig <python@wodca.de> - 2016-12-12 20:50 +0100
  Re: [Python-de] Datetime frage Hans-Peter Jansen <hpj@urpla.net> - 2016-12-11 21:01 +0100
    Re: [Python-de] Datetime frage Manfred Gil <manfred-gil@t-online.de> - 2016-12-12 18:07 +0000
      Re: [Python-de] Datetime frage Hans-Peter Jansen <hpj@urpla.net> - 2016-12-12 21:42 +0100
        Re: [Python-de] Datetime frage Manfred Gil <manfred-gil@t-online.de> - 2016-12-13 17:38 +0000
          Re: [Python-de] Datetime frage Hans-Peter Jansen <hpj@urpla.net> - 2016-12-13 20:46 +0100

csiph-web