ANNOUNCE: DateTime 0.28

2005-02-27 Thread Dave Rolsky
0.282005-02-27
[ ENHANCEMENTS ]
- The era names for the era() method are now retrieved from the
DateTime.pm object's associated locale.  The old era() method, which
was hard-coded to use BCE and CE, is renamed secular_era().  The
christian_era() method remains the same.
[ BUG FIXES ]
- Fixed an embarassing bug in the subtract_datetime() method.  It was
subtracting local times, not UTC, which caused bugs when doing
subtraction across a DST change.  This method is used to implement
subtraction overloading, so that was affected as well.  Reported by
Mike Schilli.
- The docs for the %U and %W strftime specifiers implied that these
should be zero-padded, but the code was not doing so.  Reported by J
Docauer.
-dave
/*===
VegGuide.Orgwww.BookIRead.com
Your guide to all that's veg.   My book blog
===*/


DateTime marches on

2005-02-27 Thread Matt Sisk
I was recently making some long-needed updates to a relatively ancient 
module of mine, HTML::CalendarMonth. It's still pretty crufty as far as 
HTML generation is concerned, but no more crufty than HTML::Element.

As I was slogging through a backlog of patches, bug reports, 
suggestions, etc, I began implementing some language i8n features for 
those that had requested it. In fact I released 1.10 with those mods in 
place.

Then I took a second look at it and slapped my forehead. Two worlds, two 
minds. Despite following DateTime since its inception I never really 
thought to wed it with my calendar module because the calendar modules 
was not a pressing issue. Anyway, I'd gone part of the way down the road 
to doing exactly what DateTime::Locale does.

So I quickly made an update, and now HTML::CalendarMonth 1.11 is fully 
powered on the i8n back end by DateTime::Locale. And it works splendidly.

I guess my point is that if you stare at something in front of you long 
enough, sometimes, counter-intuitively, it never occurs to you to use it 
with something you've been staring at even longer.

Thanks for all the work, folks.
Mildly chagrined,
Matt