On Sun, 31 Oct 2010, Guustaaf Damave wrote:
I have been using caches for the searches for a while, and now of course we
are in the middle of DST changes so I would like to ask you a question about
that if you don't mind.
Is there a way to retrieve the next switchover time for a time zone? I could
then store that in the cache and stop using that cache entry after that time,
similar to how web browsers do that.
The relevant information is all in the DateTime::TimeZone objects, but
there's no API for getting at it.
If someone would like to take a stab at coming up with a sane API for
this, that'd be great. I think it'd be really useful.
It might be better to just expose some of the rawer data from the timezone
objects and put the high-level API into a new module we could call
DateTime::Event::TimeZone.
-dave
/*============================================================
http://VegGuide.org http://blog.urth.org
Your guide to all that's veg House Absolute(ly Pointless)
============================================================*/