> For the complete documentation index, see [llms.txt](https://lodash.shujuwajue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lodash.shujuwajue.com/date/now.md).

# \_.now（时间戳）

**语法：**

```javascript
_.now()
```

**源代码链接：**[source](https://github.com/lodash/lodash/blob/4.17.10/lodash.js#L9960)

**npm包链接：**[npm package](https://www.npmjs.com/package/lodash.now)

**描述：**

获得 Unix 纪&#x5143;*(1 January*`1970 00`*:00:00 UTC)*&#x76F4;到现在的毫秒数。

**开始版本：**&#x32;.4.0

**返回值：**

* `(number)`: 返回时间戳。

**例子：**

```javascript
_.defer(function(stamp) {
  console.log(_.now() - stamp);
}, _.now());
// => 记录延迟函数调用的毫秒数
```
