[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: librrds-perl und deutschsprachige Zeitachse



Joachim Hartmann <joachim.hartmann@gmx-topmail.de> wrote:

> an der Ausgabe von Per hat sich nichts geändert!
> :~# perl -le 'use locale; print "Datum: ", scalar(localtime(time)), "\n";;'
> Datum: Wed Nov 26 15:59:06 2014

Ich benutze selbst kein Perl, kann also nichts Kompetentes dazu sagen.
Dein Code erzeugt bei mir aber auch eine nicht-lokalisierte Ausgabe.
Auf die Schnelle fand ich im web das:

<http://perldoc.perl.org/functions/localtime.html>

Zitat daraus:

   The format of this scalar value is not locale-dependent but built
   into Perl. For GMT instead of local time use the gmtime builtin.
   See also the Time::Local module (for converting seconds, minutes,
   hours, and such back to the integer value returned by time()), and
   the POSIX module's strftime(3) and mktime(3) functions.

Für mich liest sich das so, als sei das localtime-Format hart-kodiert.
Eine Lösung wird in den Absätzen darunter vorgeschlagen.  

HTH und Gruß
Martin


Reply to: