in reply to Re^2: Perl calendar
in thread Perl calendar

Can I assume timelocal will handle the leap year correctly here?

Yes.

localtime and timelocal do deal correctly with leap years, but I don't know how it handles leap seconds. They might be a problem because they could make you leak into a different day than you might expect. (Don't know if that's a real problem, but it's one of the many problems i can think of).