Luke Hutscal [EMAIL PROTECTED] wrote:
[...] so passing in a number like 3612 seconds might return something like
24 hours, 12 seconds [...]
Tongue in cheek:
I hope you fix the bug that converts 3612 seconds into 24 hours, 12
seconds before you make the final release.
What does it translate
Whoops - passing in something like 3612 would get you 1 hour, 12 seconds.
Thanks for pointing that out, Johnathan. Also, the module doesn't actually
do reverse translations.
Zefram, in regards to my module being about English text, I did my best to
make it pseudo-language portable - users of the
Robert Krimen [EMAIL PROTECTED] wrote:
I'm not sure if it handles durations, though.
For some definition of 'duration', yes.
It handles basic stuff such as
- monday to friday
- 1998 to 2008
by returning two DateTime objects.
Steven Schubiger
I am not quite sure that I explained my module very clearly - it doesn't
really do anything with DateTime objects in particular - it just converts
different second values into more natural phrases - so passing in a number
like 3612 seconds might return something like 24 hours, 12 seconds - but
all
It looks like DateTime::Format::Duration actually does exactly what my
module does - albeit in a cleaner way.
Thanks for the help, everyone.
On Jan 11, 2008 9:36 AM, Dave Rolsky [EMAIL PROTECTED] wrote:
On Thu, 10 Jan 2008, Luke Hutscal wrote:
Can I put my module into the DateTime
Luke Hutscal wrote:
I am not quite sure that I explained my module very clearly - it doesn't
really do anything with DateTime objects in particular -
Ahh, that's the rub. The DateTime::* namespace is for modules that
interact with DateTime objects.
Maybe you could look at putting it in
That's a thought - basically all it does is convert integer values to
phrases - 200 to 3 minutes, 20 seconds, or 3612 to 24 hours, 12
seconds.
Seeing as the module doesn't really make sense for inclusion into the
DateTime::* namespace, does anyone have any recommendations on a better
namespace
2008/1/11, Luke Hutscal [EMAIL PROTECTED]:
That's a thought - basically all it does is convert integer values to
phrases - 200 to 3 minutes, 20 seconds, or 3612 to 24 hours, 12
seconds.
Seeing as the module doesn't really make sense for inclusion into the
DateTime::* namespace, does anyone
On Fri, Jan 11, 2008 at 03:23:19PM -0700, Luke Hutscal wrote:
That's a thought - basically all it does is convert integer values to
phrases - 200 to 3 minutes, 20 seconds, or 3612 to 24 hours, 12
seconds.
Seeing as the module doesn't really make sense for inclusion into the
DateTime::*
Hi Luke,
AFAIK, formatting/parsing modules like yours go under the
DateTime::Format:: namespace.
A module for what it sounds like you're trying to do already exists:
http://search.cpan.org/~schubiger/DateTime-Format-Natural-0.65/http://search.cpan.org/~schubiger/DateTime-Format-Natural-0.65/
10 matches
Mail list logo