hotti: POSIX und Formatierung von Datum

hi,

use POSIX qw(strftime);

zum Formatieren Datum/Zeit benutze ich
strftime("%a, %d %b %Y %H:%M:%S GMT", gmtime(time));

da gibt es einen kleinen Unterschied, auf XP sehe ich da
So, 19 Jul 2009 09:36:17 GMT

und auf Linux habe ich
Sun, 19 Jul 2009 09:36:17 GMT

Also das Format %a liefert den Tag einmal in DE(So) bzw. in EN(Sun). Letzteres hätte ich gerne auf XP, wo kann ich das denn einstellen?

(bez. Monat ist derzeit alles gleich %d)

Viele Grüße,
Horst

--
Wenn der Kommentar nicht zum Code passt, kann auch der Code falsch sein.
  1. Hi,

    Also das Format %a liefert den Tag einmal in DE(So) bzw. in EN(Sun). Letzteres hätte ich gerne auf XP, wo kann ich das denn einstellen?

    http://perldoc.perl.org/perllocale.html

    MfG ChrisB

    --
    Light travels faster than sound - that's why most people appear bright until you hear them speak.
    1. Hi,

      http://perldoc.perl.org/perllocale.html

      Ja, danke!!! Ich Depp hatte das ja alles schonmal und mittlerweile auch wieder gefunden:

      use POSIX qw(strftime setlocale LC_CTYPE LC_TIME);
      setlocale(LC_TIME, 'en');

      Sorry4Trouble ;-)

      Hotte

      --
      Kaum machstes richtig, gehts.