TimeFromYear.js 261 B

1234567891011
  1. 'use strict';
  2. var msPerDay = require('../helpers/timeConstants').msPerDay;
  3. var DayFromYear = require('./DayFromYear');
  4. // https://262.ecma-international.org/5.1/#sec-15.9.1.3
  5. module.exports = function TimeFromYear(y) {
  6. return msPerDay * DayFromYear(y);
  7. };