2020-08-25 23:57:08 +00:00
|
|
|
'use strict';
|
|
|
|
|
2021-02-26 03:58:33 +00:00
|
|
|
var floor = require('./floor');
|
2020-08-25 23:57:08 +00:00
|
|
|
|
|
|
|
var msPerDay = require('../helpers/timeConstants').msPerDay;
|
|
|
|
|
|
|
|
// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.2
|
|
|
|
|
|
|
|
module.exports = function Day(t) {
|
2021-02-26 03:58:33 +00:00
|
|
|
return floor(t / msPerDay);
|
2020-08-25 23:57:08 +00:00
|
|
|
};
|