Skip Menu |
 

This queue is for tickets about the TimeDate CPAN distribution.

Report information
The Basics
Id: 5239
Status: resolved
Priority: 0/
Queue: TimeDate

People
Owner: Nobody in particular
Requestors: cfaber [...] fpsn.net
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: %e %l and others in the Date::Format library use the wrong sprinf() call
Download (untitled) / with headers
text/plain 198b
in Date/Format.pm the %e %l %k and %o options provide the wrong data An example of this would be ' 2/ 4/04' rather than '2/4/04' this is caused by what appears to be a typo in the sprintf() calls.
Download patch
application/octet-stream 1.2k

Message body not shown because it is not plain text.

From: Graham Barr <gbarr [...] pobox.com>
Subject: Re: [cpan #5239] %e %l and others in the Date::Format library use the wrong sprinf() call
Date: Fri, 6 Feb 2004 22:18:59 +0000
To: bug-TimeDate [...] rt.cpan.org
RT-Send-Cc:
Download (untitled) / with headers
text/plain 479b
On 6 Feb 2004, at 21:37, Guest via RT wrote: Show quoted text
> > in Date/Format.pm the %e %l %k and %o options provide the wrong data > > An example of this would be ' 2/ 4/04' rather than '2/4/04' > > this is caused by what appears to be a typo in the sprintf() calls.
No, it is correct. It mimics what strftime in libc does. $ perl -MPOSIX=strftime -le 'print scalar localtime(time-3600*15),"\n",strftime("%e/%l/%k",localtime(time -3600*15))' Fri Feb 6 07:18:30 2004 6/ 7/ 7 Graham.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.