Sha256: 41a9b9da3ede4effd12c43e1c25851b5005623f5eb6dee707252cbe373b32ef0

Contents?: true

Size: 328 Bytes

Versions: 452

Compression:

Stored size: 328 Bytes

Contents

'use strict';

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

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

module.exports = function MakeDate(day, time) {
	if (!$isFinite(day) || !$isFinite(time)) {
		return NaN;
	}
	return (day * msPerDay) + time;
};

Version data entries

452 entries across 44 versions & 4 rubygems

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