On Mon, 13 Aug 2007, Kjell-Magne Øierud wrote:

I have one question about the behavior the _stringify() method. As
documented the method defaults to return the equivalent of

$dt->ymd('-') . 'T' . $dt->hms(':')

What I'm wondering about is why the time zone is not included? Like in

$dt->strftime('%FT%T%z');

It gives me all kinds of problems.

I can of course work around it by making my own version of
_stringify(), but I am curious on why it is omitted. If there is no
particular reason I will vote for it to be included per default. (Or
make it configurable?)

The reason it's omitted is historical, though I can't remember why. I don't plan to change it now, since that'd be a pointless breaking of backwards compatibility.

You can change the stringification, however. Search the DateTime.pm docs for "formatter".


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

Reply via email to