This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #70337] perldiag: localtime(...) too large
authorFather Chrysostomos <sprout@cpan.org>
Fri, 13 Nov 2009 09:19:59 +0000 (10:19 +0100)
committerRafael Garcia-Suarez <rgs@consttype.org>
Fri, 13 Nov 2009 09:21:46 +0000 (10:21 +0100)
commit8b56d6ffd0fe641abae5662a8e75424a1d9e4dce
treeb4102e51f325fb74a5624e1b44acb8fc11bb8d20
parent97b33cac18e30b878b151b5f3fcbf9c32cb7b037
[perl #70337] perldiag: localtime(...) too large

The message ‘localtime(...) too large’ is not documented in perldiag.
The attached patch adds it. I know it’s technically ‘%s(%.0f) too
large’, but it’s easier for users to find it under ‘localtime’ and
‘gmtime’. I also had to modify diagnostics.pm to support %.0f, and I
added a test, but I used a hack with STDERR that would make debugging
very difficult to anyone else adding tests.
lib/diagnostics.pm
lib/diagnostics.t
pod/perldiag.pod