forked from ard/ruoyi-api

‘liusuyi’
2023-07-07 5f5cf5b1b4683a56fd0c85a0d89d14a4c0268cde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// TODO: Remove from `core-js@4`
var $ = require('../internals/export');
var uncurryThis = require('../internals/function-uncurry-this');
 
var $Date = Date;
var thisTimeValue = uncurryThis($Date.prototype.getTime);
 
// `Date.now` method
// https://tc39.es/ecma262/#sec-date.now
$({ target: 'Date', stat: true }, {
  now: function now() {
    return thisTimeValue(new $Date());
  }
});