POSIX-strftime-GNU
view release on metacpan or search on metacpan
t/120_tmzone.pl view on Meta::CPAN
6789101112131415161718use
Config;
use
POSIX::strftime::GNU;
use
Time::Local;
if
(
$Config
{d_setlocale}) {
POSIX::setlocale(
&POSIX::LC_TIME
,
'C'
);
}
my
$fmt
=
shift
@ARGV
||
'%z'
;
my
@t
=
@ARGV
?
localtime
timelocal(
@ARGV
) :
localtime
;
strftime
$fmt
,
@t
;
xs/ppport.h view on Meta::CPAN
325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297
if
(
$opt
{hints} &&
exists
$hints
{
$func
} && !
$given_hints
{
$func
}++) {
my
$hint
=
$hints
{
$func
};
$hint
=~ s/^/ /mg;
" --- hint for $func ---\n"
,
$hint
;
}
$rv
;
}
sub
usage
{
my
(
$usage
) =
do
{
local
(
@ARGV
,$/)=($0); <> } =~ /^=head\d
$HS
+SYNOPSIS\s*^(.*?)\s*^=/ms;
my
%M
= (
'I'
=>
'*'
);
$usage
=~ s/^\s
*perl
\s+\S+/$^X $0/;
$usage
=~ s/([A-Z])<([^>]+)>/
$M
{$1}$2
$M
{$1}/g;
<<ENDUSAGE;
Usage: $usage
See perldoc $0 for details.
ENDUSAGE
exit
2;
}
sub
strip
{
my
$self
=
do
{
local
(
@ARGV
,$/)=($0); <> };
my
(
$copy
) =
$self
=~ /^=head\d\s+COPYRIGHT\s*^(.*?)^=\w+/ms;
$copy
=~ s/^(?=\S+)/ /gms;
$self
=~ s/^
$HS
+Do NOT edit.*?(?=^-)/
$copy
/ms;
$self
=~ s/^SKIP.*(?=^__DATA__)/SKIP
if
(\
@ARGV
&& \
$ARGV
[0] eq
'--unstrip'
) {
\$@ and
die
"Cannot require Devel::PPPort, please install.\\n"
;
if
(
eval
\
$Devel::PPPort::VERSION
<
$VERSION
) {
die
"$0 was originally generated with Devel::PPPort $VERSION.\\n"
.
"Your Devel::PPPort is only version \$Devel::PPPort::VERSION.\\n"
xt/cover.pl view on Meta::CPAN
8910111213141516171819use
File::Spec;
use
Cwd;
BEGIN {
chdir
dirname(__FILE__) or
die
"$!"
;
chdir
'..'
or
die
"$!"
;
};
do
"./Build.PL"
;
local
@ARGV
= (
@ARGV
,
'testcover'
);
do
"./Build"
;
( run in 0.362 second using v1.01-cache-2.11-cpan-87723dcf8b7 )