Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
520 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var root = require('./_root');
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Gets the timestamp of the number of milliseconds that have elapsed since
|
---|
| 5 | * the Unix epoch (1 January 1970 00:00:00 UTC).
|
---|
| 6 | *
|
---|
| 7 | * @static
|
---|
| 8 | * @memberOf _
|
---|
| 9 | * @since 2.4.0
|
---|
| 10 | * @category Date
|
---|
| 11 | * @returns {number} Returns the timestamp.
|
---|
| 12 | * @example
|
---|
| 13 | *
|
---|
| 14 | * _.defer(function(stamp) {
|
---|
| 15 | * console.log(_.now() - stamp);
|
---|
| 16 | * }, _.now());
|
---|
| 17 | * // => Logs the number of milliseconds it took for the deferred invocation.
|
---|
| 18 | */
|
---|
| 19 | var now = function() {
|
---|
| 20 | return root.Date.now();
|
---|
| 21 | };
|
---|
| 22 |
|
---|
| 23 | module.exports = now;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.