DateTime-Set

 view release on metacpan or  search on metacpan

t/19spanset_daylight_savings.t  view on Meta::CPAN


use strict;
use warnings;

use Test::More;

use DateTime;
use DateTime::SpanSet;


# Check that SpanSets return spans with the correct endpoints during daylight
# savings changeovers given a weekly recurrence.

BEGIN {
    if (eval 'use DateTime::Event::Recurrence; 1') {
        plan tests => 552;
    }
    else {
        plan skip_all => 'DateTime::Event::Recurrence required for this test.';
    }
}

t/20spanset_week_wrapped_recurrence.t  view on Meta::CPAN


use strict;
use warnings;

use Test::More;

use DateTime;
use DateTime::SpanSet;


# Check that SpanSets return Spans with the correct endpoints given
# the same week recurrence as its starting and ending sets.

BEGIN {
    if (eval 'use DateTime::Event::Recurrence; 1') {
        plan tests => 60;
    }
    else {
        plan skip_all => 'DateTime::Event::Recurrence required for this test.';
    }
}



( run in 0.258 second using v1.01-cache-2.11-cpan-b61123c0432 )