I think rtc takes into account leap years and stuff.  Did you actually test this?  You do not even need a psp, just run test.py.

-[Unknown]