Skip Menu |
 

This queue is for tickets about the DateTime-Incomplete CPAN distribution.

Report information
The Basics
Id: 23314
Status: open
Priority: 0/
Queue: DateTime-Incomplete

People
Owner: Nobody in particular
Requestors: develop [...] traveljury.com
Cc:
AdminCc:

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



Subject: Feature request - return partial dates
Download (untitled) / with headers
text/plain 474b
Hi Flavio I would like to to consider adding two features: 1) The ability to make the $UNDEF_CHAR specifiable when (eg) $date->ymd is called. This would make it easier to convert dates to (eg) 1970-00-00 for MySQL and 2) The ability to print partial dates, so if you have 1970-10-xx, it will return 1970-10, but if you have xxxx-10-24, it will return 10-24. I realise this is a bit tricker, because 1970-xx-24 doesn't have a meaningful return value... thanks Clint
Subject: Re: [rt.cpan.org #23314] Feature request - return partial dates
Date: Thu, 16 Nov 2006 09:35:52 -0200
To: bug-DateTime-Incomplete [...] rt.cpan.org, datetime <datetime [...] perl.org>
From: "Flavio S. Glock" <fglock [...] gmail.com>
Download (untitled) / with headers
text/plain 714b
Forwarding to the DateTime list for discussion: 2006/11/15, via RT <bug-DateTime-Incomplete@rt.cpan.org>: Show quoted text
> Subject: Feature request - return partial dates > Severity: Wishlist > > > Hi Flavio > > I would like to to consider adding two features: > > 1) The ability to make the $UNDEF_CHAR specifiable when (eg) $date->ymd > is called. This would make it easier to convert dates to (eg) > 1970-00-00 for MySQL > > and > > 2) The ability to print partial dates, so if you have 1970-10-xx, it > will return 1970-10, but if you have xxxx-10-24, it will return 10-24. > I realise this is a bit tricker, because 1970-xx-24 doesn't have a > meaningful return value... > > thanks > > Clint >
- Flavio S. Glock


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.