in reply to 2038 bug

I personally think there are only two ways of dealing with a problem like this in advance:

I don't see a lot of middle ground on an issue like this.

If you're going to worry about it, worry about it all the way and make sure it works ... otherwise just put a conservative comment in the User Manual that says something like "Use this software with dates greater them 2010 at your own risk" and don't make a lot of work for yourself that may or may not acctually ever be usefull to someone who may or may not be looking at your code.

Update: DateTime works great...

laptop:~> perl -MDateTime -MDateTime::Duration -l -w my $d = DateTime->now; $d->add(years => 200); print $d->iso8601(); ^D
2203-04-11T06:52:55