UNPKG

486 BJavaScriptView Raw
1/**
2 * Gets the timestamp of the number of milliseconds that have elapsed since
3 * the Unix epoch (1 January 1970 00:00:00 UTC).
4 *
5 * @static
6 * @memberOf _
7 * @since 2.4.0
8 * @type {Function}
9 * @category Date
10 * @returns {number} Returns the timestamp.
11 * @example
12 *
13 * _.defer(function(stamp) {
14 * console.log(_.now() - stamp);
15 * }, _.now());
16 * // => Logs the number of milliseconds it took for the deferred function to be invoked.
17 */
18var now = Date.now;
19
20export default now;