Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: autarch [...] urth.org
Cc:
AdminCc:

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



Subject: Docs imply that $t->month returns long name, but it doesn't
The docs imply that $t->month & $t->monname return the long month name ("February"), but they only return the 3 letter abbreviations. I'd suggest fixing the docs (no need to break backwards compatibility) and ideally, also adding a $t->month_long method (or something like that) that _does_ return the long name. Obviously, this has some implications for the localization bits (mon_list) but it wouldn't be too hard to add a mon_list_long function as well.
[guest - Wed Jul 17 14:56:05 2002]: Show quoted text
> The docs imply that $t->month & $t->monname return the long month name > ("February"), but they only return the 3 letter abbreviations. > > I'd suggest fixing the docs (no need to break backwards compatibility) > and ideally, also adding a $t->month_long method (or something like > that) that _does_ return the long name. Obviously, this has some > implications for the localization bits (mon_list) but it wouldn't > be too hard to add a mon_list_long function as well.
Fixed in CVS. Added fullmonth() function to do what the docs suggested so we don't break old code. Also fixed the same with day() and fullday()