/[Frey]/branches/zimbardo/patch/DateTimeX-Easy-parse-2008-fix.diff
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /branches/zimbardo/patch/DateTimeX-Easy-parse-2008-fix.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1172 - (show annotations)
Sun Jul 5 21:40:16 2009 UTC (14 years, 9 months ago) by dpavlin
File size: 773 byte(s)
branch for localisation

1 --- t/03-parse.t.orig 2008-09-22 21:07:02.000000000 +0000
2 +++ t/03-parse.t 2009-01-03 21:51:06.000000000 +0000
3 @@ -9,13 +9,15 @@
4
5 use DateTimeX::Easy;
6
7 +my $yyy = (localtime(time))[5] + 1900;
8 +
9 for (split m/\n/, <<_END_) {
10 1994-06-16T07:29:35 @ -0600 | Wed, 16 Jun 94 07:29:35 CST
11 1994-10-13T10:13:13 @ -0700 | Thu, 13 Oct 94 10:13:13 -0700
12 1994-11-09T09:50:32 @ -0500 | Wed, 9 Nov 1994 09:50:32 -0500 (EST)
13 -2008-12-21T17:05:00 | 21 dec 17:05
14 -2008-12-21T17:05:00 | 21-dec 17:05
15 -2008-12-21T17:05:00 | 21/dec 17:05
16 +$yyy-12-21T17:05:00 | 21 dec 17:05
17 +$yyy-12-21T17:05:00 | 21-dec 17:05
18 +$yyy-12-21T17:05:00 | 21/dec 17:05
19 1993-12-21T17:05:00 | 21/dec/93 17:05
20 1999-01-01T10:02:18 @ UTC | 1999 10:02:18 "GMT"
21 1994-11-16T22:28:20 @ -0800 | 16 Nov 94 22:28:20 PST

  ViewVC Help
Powered by ViewVC 1.1.26