ptime.gettime code example Example: javascript get Time var d=new Date(); d.getTime();//I'm in milliseconds, divide by 1000 for seconds