Porting install file for date-api

This one still works, if we call $this-> and no method defined.