aswi2020vldc-gitlab/templetes/node_modules/es-abstract/2016/Day.js @ 0b434236
1 | 3a515b92 | cagy | 'use strict'; |
---|---|---|---|
2 | |||
3 | var GetIntrinsic = require('../GetIntrinsic'); |
||
4 | |||
5 | var $floor = GetIntrinsic('%Math.floor%'); |
||
6 | |||
7 | var msPerDay = require('../helpers/timeConstants').msPerDay; |
||
8 | |||
9 | // https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.2
|
||
10 | |||
11 | module.exports = function Day(t) { |
||
12 | return $floor(t / msPerDay); |
||
13 | };
|