Blame t/base.secs_since_1970.t

Packit Service 653591
#!/usr/bin/perl -w
Packit Service 653591
Packit Service 653591
use Test::Inter;
Packit Service 653591
$t = new Test::Inter 'base :: secs_since_1970';
Packit Service 653591
$testdir = '';
Packit Service 653591
$testdir = $t->testdir();
Packit Service 653591
Packit Service 653591
use Date::Manip;
Packit Service 653591
if (DateManipVersion() >= 6.00) {
Packit Service 653591
   $t->feature("DM6",1);
Packit Service 653591
}
Packit Service 653591
Packit Service 653591
$t->skip_all('Date::Manip 6.xx required','DM6');
Packit Service 653591
Packit Service 653591
Packit Service 653591
sub test {
Packit Service 653591
  (@test)=@_;
Packit Service 653591
  @ret = $obj->secs_since_1970(@test);
Packit Service 653591
  return @ret;
Packit Service 653591
}
Packit Service 653591
Packit Service 653591
$dmt = new Date::Manip::TZ;
Packit Service 653591
$obj = $dmt->base();
Packit Service 653591
$dmt->config("forcedate","now,America/New_York");
Packit Service 653591
Packit Service 653591
$tests="
Packit Service 653591
Packit Service 653591
[ 1997 12 10 12 00 00 ] => 881755200
Packit Service 653591
Packit Service 653591
[ 1999 12 10 12 30 30 ] => 944829030
Packit Service 653591
Packit Service 653591
Packit Service 653591
881755200 => [ 1997 12 10 12 0 0 ]
Packit Service 653591
Packit Service 653591
944829030 => [ 1999 12 10 12 30 30 ]
Packit Service 653591
Packit Service 653591
";
Packit Service 653591
Packit Service 653591
$t->tests(func  => \&test,
Packit Service 653591
          tests => $tests);
Packit Service 653591
$t->done_testing();
Packit Service 653591
Packit Service 653591
#Local Variables:
Packit Service 653591
#mode: cperl
Packit Service 653591
#indent-tabs-mode: nil
Packit Service 653591
#cperl-indent-level: 3
Packit Service 653591
#cperl-continued-statement-offset: 2
Packit Service 653591
#cperl-continued-brace-offset: 0
Packit Service 653591
#cperl-brace-offset: 0
Packit Service 653591
#cperl-brace-imaginary-offset: 0
Packit Service 653591
#cperl-label-offset: 0
Packit Service 653591
#End: