I suspect that it's based on Time.h. See Time::localtime
In reply to Re: Why does localtime() return 1900-$YEAR? by marto in thread Why does localtime() return $YEAR-1900? by szabgab