Time-Piece-Adaptive
view release on metacpan or search on metacpan
lib/Time/Piece/Adaptive.pm view on Meta::CPAN
# replace CORE::GLOBAL localtime and gmtime if required
my $class = shift;
my %params;
map $params{$_}++, @_, @EXPORT;
if (delete $params{':override'})
{
$class->_export ('CORE::GLOBAL', keys %params);
}
else
{
$class->_export((caller)[0], keys %params);
}
}
=head1 METHODS
=head2 new
my $t1 = new Time::Piece::Adaptive (time, stringify => "%Y%m%d%H%M%S");
( run in 0.789 second using v1.01-cache-2.11-cpan-1e74a51a04c )