Day.js 234 B

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