From 9bc7f50b6c983278ffa7b722240000d38037e149 Mon Sep 17 00:00:00 2001 From: Chris 'BinGOs' Williams Date: Fri, 6 Sep 2013 13:24:57 +0100 Subject: Update Time-Piece to CPAN version 1.23 [DELTA] 1.23 2013-09-06 - add a LICENSE file (thanks, John Peacock!) - make sure Time::Seconds loads Exporter, which it relies on (thanks, GFUJI and TOKUHIROM!) - fix day of year parsing (like "%y%j") (thanks, Doug Wilson) --- cpan/Time-Piece/t/02core.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cpan/Time-Piece/t') diff --git a/cpan/Time-Piece/t/02core.t b/cpan/Time-Piece/t/02core.t index 1e8d2649a6..3840e879b4 100644 --- a/cpan/Time-Piece/t/02core.t +++ b/cpan/Time-Piece/t/02core.t @@ -1,4 +1,4 @@ -use Test::More tests => 95; +use Test::More tests => 96; my $is_win32 = ($^O =~ /Win32/); my $is_qnx = ($^O eq 'qnx'); @@ -215,6 +215,12 @@ cmp_ok(Time::Piece->strptime("2002/12/31", '%Y/%m/%d')->yday, '==', 364); cmp_ok(Time::Piece->strptime("2002/07/10", '%Y/%m/%d')->isdst, '==', 0); cmp_ok(Time::Piece->strptime("2002/07/10", '%Y/%m/%d')->day_of_week, '==', 3); +is( + Time::Piece->strptime('12212', "%y%j")->ymd(), + '2012-07-30', + "day of the year parsing", +); + cmp_ok( Time::Piece->strptime("2000/02/29 12:34:56", '%Y/%m/%d %H:%M:%S')->epoch, '==', -- cgit v1.2.1