Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

es.date.now.js 399B

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