View | Details | Raw Unified | Return to bug 15445
Collapse All | Expand All

(-)a/t/DateUtils.t (-3 / +2 lines)
Lines 79-89 for ( qw/ 2014-01-01 2100-01-01 9999-01-01 / ) { Link Here
79
    my $duration = gettimeofday();
79
    my $duration = gettimeofday();
80
    $new_dt = dt_from_string($_, 'iso', $dear_dirty_dublin);
80
    $new_dt = dt_from_string($_, 'iso', $dear_dirty_dublin);
81
    $duration = gettimeofday() - $duration;
81
    $duration = gettimeofday() - $duration;
82
    cmp_ok $duration, '<', 1, "Create DateTime with dt_from_string() for $_ with TZ in less than 1s";
82
    cmp_ok $duration, '<', 4, "Create DateTime with dt_from_string() for $_ with TZ in less than 4s";
83
    $duration = gettimeofday();
83
    $duration = gettimeofday();
84
    output_pref( { dt => $new_dt } );
84
    output_pref( { dt => $new_dt } );
85
    $duration = gettimeofday() - $duration;
85
    $duration = gettimeofday() - $duration;
86
    cmp_ok $duration, '<', 1, "Create DateTime with output_pref() for $_ with TZ in less than 1s";
86
    cmp_ok $duration, '<', 4, "Create DateTime with output_pref() for $_ with TZ in less than 4s";
87
}
87
}
88
88
89
$new_dt = dt_from_string( '2011-06-16 12:00', 'sql' );
89
$new_dt = dt_from_string( '2011-06-16 12:00', 'sql' );
90
- 

Return to bug 15445