wfsp has asked for the wisdom of the Perl Monks concerning the following question:
outputs#!/usr/local/bin/perl use strict; use warnings; use POSIX qw(setlocale LC_ALL LC_CTYPE); #my $loc = setlocale(LC_ALL, q{es_ES}); my $loc = setlocale(LC_ALL, q{es}); print $loc?$loc:q{undef}, qq{\n}; my $str = POSIX::strftime("%A, %B %d, %Y", gmtime); print "$str\n";
I used the snippet in the DateTime::Locale docsundef Thursday, August 14, 2008
and it returned a list that included the two I tried above.my @ids = DateTime::Locale->ids();
I'm on Windows but I plan to use this on my webhoster (*nix).
Any ideas welcome.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spanish dates using POSIX (cases)
by tye (Sage) on Aug 14, 2008 at 19:25 UTC | |
|
Re: Spanish dates using POSIX
by mr_mischief (Monsignor) on Aug 14, 2008 at 19:18 UTC | |
|
Re: Spanish dates using POSIX
by bart (Canon) on Aug 19, 2008 at 11:39 UTC |