Skip Menu |

This queue is for tickets about the Time-Piece CPAN distribution.

Report information
The Basics
Id: 33567
Status: resolved
Priority: 0/
Queue: Time-Piece

People
Owner: Nobody in particular
Requestors: wesley.schaal [...] gmail.com
Cc:
AdminCc:

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



Subject: %b and %B should be equal
Date: Mon, 25 Feb 2008 19:31:28 +0100
To: bug-Time-Piece [...] rt.cpan.org
From: "Wesley Schaal" <wesley.schaal [...] gmail.com>
According to the strptime man page, formats %a and %A are interchangeable, ie, they both refer to short or long weekday names. Time::Piece treats them like they are used in strftime. Same situation with %b and %B (month names). The Date Parsing example from the Time::Piece (v1.12) CPAN page fails because of this inconsistency. [Tested on AS v5.10.0]
I fixed the example. It's not clear there's any particular "standard" on this. Different OS implementations may treat it differently. Time::Piece uses the FreeBSD implementation of strptime.