Home Reference Source

packages/remote-environment/src/es6/Date.js

/**
 * Copyright 2017 Moshe Simantov
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* eslint-disable prettier/prettier */

export default {
  'Date': Date,
  'Date.now': Date.now,
  'Date.parse': Date.parse,
  'Date.prototype': Date.prototype,
  'Date.prototype.getDate': Date.prototype.getDate,
  'Date.prototype.getDay': Date.prototype.getDay,
  'Date.prototype.getFullYear': Date.prototype.getFullYear,
  'Date.prototype.getHours': Date.prototype.getHours,
  'Date.prototype.getMilliseconds': Date.prototype.getMilliseconds,
  'Date.prototype.getMinutes': Date.prototype.getMinutes,
  'Date.prototype.getMonth': Date.prototype.getMonth,
  'Date.prototype.getSeconds': Date.prototype.getSeconds,
  'Date.prototype.getTime': Date.prototype.getTime,
  'Date.prototype.getTimezoneOffset': Date.prototype.getTimezoneOffset,
  'Date.prototype.getUTCDate': Date.prototype.getUTCDate,
  'Date.prototype.getUTCDay': Date.prototype.getUTCDay,
  'Date.prototype.getUTCFullYear': Date.prototype.getUTCFullYear,
  'Date.prototype.getUTCHours': Date.prototype.getUTCHours,
  'Date.prototype.getUTCMilliseconds': Date.prototype.getUTCMilliseconds,
  'Date.prototype.getUTCMinutes': Date.prototype.getUTCMinutes,
  'Date.prototype.getUTCMonth': Date.prototype.getUTCMonth,
  'Date.prototype.getUTCSeconds': Date.prototype.getUTCSeconds,
  'Date.prototype.getYear': Date.prototype.getYear,
  'Date.prototype.setDate': Date.prototype.setDate,
  'Date.prototype.setFullYear': Date.prototype.setFullYear,
  'Date.prototype.setHours': Date.prototype.setHours,
  'Date.prototype.setMilliseconds': Date.prototype.setMilliseconds,
  'Date.prototype.setMinutes': Date.prototype.setMinutes,
  'Date.prototype.setMonth': Date.prototype.setMonth,
  'Date.prototype.setSeconds': Date.prototype.setSeconds,
  'Date.prototype.setTime': Date.prototype.setTime,
  'Date.prototype.setUTCDate': Date.prototype.setUTCDate,
  'Date.prototype.setUTCFullYear': Date.prototype.setUTCFullYear,
  'Date.prototype.setUTCHours': Date.prototype.setUTCHours,
  'Date.prototype.setUTCMilliseconds': Date.prototype.setUTCMilliseconds,
  'Date.prototype.setUTCMinutes': Date.prototype.setUTCMinutes,
  'Date.prototype.setUTCMonth': Date.prototype.setUTCMonth,
  'Date.prototype.setUTCSeconds': Date.prototype.setUTCSeconds,
  'Date.prototype.setYear': Date.prototype.setYear,
  'Date.prototype.toDateString': Date.prototype.toDateString,
  'Date.prototype.toISOString': Date.prototype.toISOString,
  'Date.prototype.toJSON': Date.prototype.toJSON,
  'Date.prototype.toLocaleDateString': Date.prototype.toLocaleDateString,
  'Date.prototype.toLocaleString': Date.prototype.toLocaleString,
  'Date.prototype.toLocaleTimeString': Date.prototype.toLocaleTimeString,
  'Date.prototype.toString': Date.prototype.toString,
  'Date.prototype.toTimeString': Date.prototype.toTimeString,
  'Date.prototype.toUTCString': Date.prototype.toUTCString,
  'Date.prototype.valueOf': Date.prototype.valueOf,
  'Date.prototype[Symbol.toPrimitive]': Date.prototype[Symbol.toPrimitive],
  'Date.UTC': Date.UTC,
};