Spaces:
Configuration error
Configuration error
Download node_modules/es-abstract/2017/MakeTime.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2017/MakeTime.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/es-abstract/2017/MakeTime.js
-
curl -L -o MakeTime.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2017/MakeTime.js
698 Bytes
| ; | |
| var $isFinite = require('../helpers/isFinite'); | |
| var timeConstants = require('../helpers/timeConstants'); | |
| var msPerSecond = timeConstants.msPerSecond; | |
| var msPerMinute = timeConstants.msPerMinute; | |
| var msPerHour = timeConstants.msPerHour; | |
| var ToInteger = require('./ToInteger'); | |
| // https://262.ecma-international.org/5.1/#sec-15.9.1.11 | |
| module.exports = function MakeTime(hour, min, sec, ms) { | |
| if (!$isFinite(hour) || !$isFinite(min) || !$isFinite(sec) || !$isFinite(ms)) { | |
| return NaN; | |
| } | |
| var h = ToInteger(hour); | |
| var m = ToInteger(min); | |
| var s = ToInteger(sec); | |
| var milli = ToInteger(ms); | |
| var t = (h * msPerHour) + (m * msPerMinute) + (s * msPerSecond) + milli; | |
| return t; | |
| }; | |