Sha256: 07bd801ef44bcc4c5458937d6b3c09b1ba6f30d24fbb06ca9b4818c0699c330b

Contents?: true

Size: 261 Bytes

Versions: 452

Compression:

Stored size: 261 Bytes

Contents

'use strict';

var msPerDay = require('../helpers/timeConstants').msPerDay;

var DayFromYear = require('./DayFromYear');

// https://262.ecma-international.org/5.1/#sec-15.9.1.3

module.exports = function TimeFromYear(y) {
	return msPerDay * DayFromYear(y);
};

Version data entries

452 entries across 44 versions & 4 rubygems

Version Path
immosquare-cleaner-0.1.46 node_modules/es-abstract/2018/TimeFromYear.js
immosquare-cleaner-0.1.46 node_modules/es-abstract/2019/TimeFromYear.js
immosquare-cleaner-0.1.46 node_modules/es-abstract/2024/TimeFromYear.js
immosquare-cleaner-0.1.46 node_modules/es-abstract/2020/TimeFromYear.js
immosquare-cleaner-0.1.46 node_modules/es-abstract/5/TimeFromYear.js
immosquare-cleaner-0.1.46 node_modules/es-abstract/2017/TimeFromYear.js
immosquare-cleaner-0.1.45 node_modules/es-abstract/2024/TimeFromYear.js
immosquare-cleaner-0.1.45 node_modules/es-abstract/5/TimeFromYear.js
immosquare-cleaner-0.1.45 node_modules/es-abstract/2023/TimeFromYear.js
immosquare-cleaner-0.1.45 node_modules/es-abstract/2015/TimeFromYear.js
immosquare-cleaner-0.1.45 node_modules/es-abstract/2021/TimeFromYear.js
immosquare-cleaner-0.1.45 node_modules/es-abstract/2022/TimeFromYear.js
immosquare-cleaner-0.1.45 node_modules/es-abstract/2016/TimeFromYear.js
immosquare-cleaner-0.1.45 node_modules/es-abstract/2019/TimeFromYear.js
immosquare-cleaner-0.1.45 node_modules/es-abstract/2018/TimeFromYear.js
immosquare-cleaner-0.1.45 node_modules/es-abstract/2020/TimeFromYear.js
immosquare-cleaner-0.1.45 node_modules/es-abstract/2017/TimeFromYear.js
immosquare-cleaner-0.1.44 node_modules/es-abstract/2016/TimeFromYear.js
immosquare-cleaner-0.1.44 node_modules/es-abstract/2015/TimeFromYear.js
immosquare-cleaner-0.1.44 node_modules/es-abstract/2017/TimeFromYear.js