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


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

Re: [Python-de] Datetime frage

From Manfred Gil <manfred-gil@t-online.de>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] Datetime frage
Date 2016-12-12 18:01 +0000
Organization TOTA
Message-ID <o2mome$4ad$1@tota-refugium.de> (permalink)
References (1 earlier) <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> <mailman.14.1481486937.2322.python-de@python.org>

Show all headers | View raw


Am Sun, 11 Dec 2016 21:03:41 +0100 schrieb Stefan Schwarzer:

> 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

Hallo Stefan,

das hat geholfen, Danke

aber verstehen muß ich das jetzt nicht ? oder !

wieso muß ich bei Python erst die locale setzen? 

OS bei mir
Debian 8.6
Python 3.4




-- 
Man fordert von Kindern das Unmögliche, daß sie Ehe, Kinder und alles
sehen, und rein nichts erraten, auch von weitem her.
		-- Jean Paul

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