Hi there, My web site works a lot with your perl module Date::Time, and sometimes falls foul of invalid dates/times (when converting to a user's local timezone).
At the moment, I handle this by calling a small perl program which prints "OK" if the date/time is valid, and by checking the output of the mini-program my main script can decided to modify the time by a few hours before creating a Date::Time object so it does not fail (even though the time will be wrong - but that doesn't matter). Now, calling this small program each time my script processes a DT object takes some time - and actually adds quite a delay when processing > 50 date/times. I'd like to avoid this, and was wondering if you had any suggestions. Is there a way to handle to the fatal error, or force DT to return undef if the date/time is invalid? My script already runs a modified $SIG{__DIE__} so I can't reassign that to not die. Many regards, and thanks for a wonderful module, Scott Aitken