msFromTime.js 253 B

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