In my attempts to make Perl's date handling as portable and future-proof as possible, I've tested a lot of implementations of gmtime() and localtime() on a lot of compilers and operating systems. This one takes the cake.
Microsoft Visual C++ 2008 Express Edition. gmtime max 32535291599 (Thu Jan 01 20:59:59 3001) localtime max 32535244799 (Thu Jan 01 07:59:59 3001) gmtime min -43200 (Thu Dec 31 12:00:00 1969) localtime min 0 (Thu Jan 01 00:00:00 1970)