node.js What does Date#getTime() do?

橙三吉。 提交于 2019-12-11 22:23:42

问题


I'm working on learnyounode module 13 right now. In the hints section it claims "Date#getTime() will also come in handy."

I looked up the Date object and found the getTime method, but what does it mean when there's a hash instead of a period?


回答1:


This is just a refference to getTime method of Date object. It is normal syntax when you talk about documentations.

According to EcmaScript specification it returns this time value (the number of milliseconds since 1 January 1970 00:00:00 UTC.).



来源:https://stackoverflow.com/questions/26482015/node-js-what-does-dategettime-do

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!