- or download this
sub gmtime {
my $time = shift;
...
wantarray ? @time : bless [@time, $time, $islocal], 'Time::Piece';
}
- or download this
package Time::MyPiece;
use base 'Time::Piece';
...
my $t;
eval "$t = $SUPER::_mktime(@_)";
}
- or download this
sub _mktime {
my ($time, $islocal) = @_;
...
CORE::gmtime($time);
wantarray ? @time : bless [@time, $time, $islocal], $class;
}