Skip Menu |

This queue is for tickets about the TimeDate CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: rahed [...] e-last-minute.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.16
Fixed in: (no value)



Subject: leading space with days after formatting
The following code prints date where day has a leading space (formatted by %e). If I understand correctly there should be no spaces. perl v5.8.6 use Date::Format; use strict; use warnings; my $date = time; $date = time2str("%e.%L.%Y-%T", $date); print $date; prints: ' 5.2.2006-17:33:13'
Subject: Re: [rt.cpan.org #17492] leading space with days after formatting
Date: Sun, 5 Feb 2006 10:59:32 -0600
To: bug-TimeDate [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
On Feb 5, 2006, at 10:39 AM, Guest via RT wrote: Show quoted text
> > The following code prints date where day has a leading space > (formatted > by %e). > If I understand correctly there should be no spaces.
There are no leading zeros, but there are leading spaces. Date::Format aims to match strftime, which documents %e is replaced by the day of month as a decimal number (1-31); single digits are preceded by a blank. Graham.
From: rahed [...] e-last-minute.com
On ne 05.Ășno.2006 12:01:11, gbarr@pobox.com wrote: Show quoted text
> > On Feb 5, 2006, at 10:39 AM, Guest via RT wrote:
> > > > The following code prints date where day has a leading space > > (formatted > > by %e). > > If I understand correctly there should be no spaces.
> > There are no leading zeros, but there are leading spaces. > Date::Format aims to > match strftime, which documents > > %e is replaced by the day of month as a decimal number > (1-31); single > digits are preceded by a blank. > > Graham. >
Sorry, thanks for clarification. Could it be in the docs as it is explicitely in e.g. Time::Format? Radek