POSIX und Formatierung von Datum
hotti
- perl
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
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
Hi,
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