Now I want to transfer timstamp() in Python into timstamp() in JS. But the problem is Python uses seconds, while JS uses milliseconds. How can I transfer Python's version into JS? For example:
For Python
python_stamp = int(time.mktime(time.gmtime()))then the output is
python_stamp=1481269558But for JS:
JS_timestamp = Date().getTime()then the output is
JS_timestamp = 1481269558356
Do you know how to transfer Python's version into JS. By the way, please do not say python_stamp*1000, basically, it is not a solution I want to find.
"it is not a solution I want to find."That sucks, because that's the best cross-platform way to do it.