The timestamp() and time() method returns timestamp in seconds.milliseconds. To convert those seconds, simply multiply by 1000.