File: check_datetime_version.pl

package info (click to toggle)
libdatetime-timezone-perl 1%3A1.75-2%2B2018e
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-updates
  • size: 191,260 kB
  • sloc: perl: 2,767; sh: 42; makefile: 14
file content (21 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use strict;

use DateTime::TimeZone;

BEGIN {
    # Work around not having a version when using dzil
    if ( ! $DateTime::TimeZone::VERSION ) {
        $DateTime::TimeZone::VERSION = 99;
    }

    my $version = '0.1501';
    eval "use DateTime $version";
    if ($@) {
        Test::More::plan( skip_all =>
                "Cannot run tests before DateTime.pm $version is installed."
        );
        exit;
    }
}

1;