WeekDay.js 208 B

12345678910
  1. 'use strict';
  2. var Day = require('./Day');
  3. var modulo = require('./modulo');
  4. // https://262.ecma-international.org/5.1/#sec-15.9.1.6
  5. module.exports = function WeekDay(t) {
  6. return modulo(Day(t) + 4, 7);
  7. };