aswi2020vldc-gitlab/templetes/node_modules/es-abstract/2017/DayWithinYear.js @ 4605a44b
1 |
'use strict'; |
---|---|
2 |
|
3 |
var Day = require('./Day'); |
4 |
var DayFromYear = require('./DayFromYear'); |
5 |
var YearFromTime = require('./YearFromTime'); |
6 |
|
7 |
// https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.4
|
8 |
|
9 |
module.exports = function DayWithinYear(t) { |
10 |
return Day(t) - DayFromYear(YearFromTime(t)); |
11 |
};
|