Add sysdate database portability function