in reply to Re: Localized weekday names
in thread Localized weekday names
So I modified your code to something like this:
Which does work, but for Germany this interestingly producesperl -MDateTime -le '@wd=map {DateTime->new(locale=> "de", year=>1970, +month=>1,day=>4+$_)->strftime("%a")} (0..6);print join",",@wd'
instead of the desiredSo.,Mo.,Di.,Mi.,Do.,Fr.,Sa.
It doesn't look like DateTime can handle %a returning only 2 chars. -- No Idea why :-)So,Mo,Di,Mi,Do,Fr,Sa
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Localized weekday names
by 1nickt (Canon) on Nov 04, 2017 at 00:08 UTC |