main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
518 bytes
|
Rev | Line | |
---|
[d565449] | 1 | import root from './_root.js';
|
---|
| 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 | export default now;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.