Python
import time
round(time.time()*1000)
JS
new Date().getTime()
Are both of these same or local timezone dependent (as mentioned here)? I'm getting the almost same result (manually testing in console and IDE). But don't know, if the result will change if my timezone changes.