server: added getTime() function to script