TimeWithinDay.js 247 B

123456789101112
  1. 'use strict';
  2. var modulo = require('./modulo');
  3. var msPerDay = require('../helpers/timeConstants').msPerDay;
  4. // https://262.ecma-international.org/5.1/#sec-15.9.1.2
  5. module.exports = function TimeWithinDay(t) {
  6. return modulo(t, msPerDay);
  7. };