ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CBOR-XS/XS.pm
(Generate patch)

Comparing CBOR-XS/XS.pm (file contents):
Revision 1.36 by root, Mon Dec 2 06:37:53 2013 UTC vs.
Revision 1.37 by root, Mon Dec 2 06:39:03 2013 UTC

989 # from FreeBSD, which can't parse ISO 8601, RFC3339, RFC4287 or much of anything 989 # from FreeBSD, which can't parse ISO 8601, RFC3339, RFC4287 or much of anything
990 # else either. Whats incredibe over standard strptime totally escapes me. 990 # else either. Whats incredibe over standard strptime totally escapes me.
991 # doesn't do fractional times, either. sigh. 991 # doesn't do fractional times, either. sigh.
992 # In fact, it's all a lie, it uses whatever strptime it wants, and of course, 992 # In fact, it's all a lie, it uses whatever strptime it wants, and of course,
993 # they are all incomptible. The openbsd one simply ignores %z (but according to the 993 # they are all incomptible. The openbsd one simply ignores %z (but according to the
994 # docs, it would be much more incredibly flexible). 994 # docs, it would be much more incredibly flexible indeed. If it worked, that is.).
995 scalar eval { 995 scalar eval {
996 my $s = $_[1]; 996 my $s = $_[1];
997 997
998 $s =~ s/Z$/+00:00/; 998 $s =~ s/Z$/+00:00/;
999 $s =~ s/(\.[0-9]+)?([+-][0-9][0-9]):([0-9][0-9])$// 999 $s =~ s/(\.[0-9]+)?([+-][0-9][0-9]):([0-9][0-9])$//

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines