Spaces:
Configuration error
Configuration error
Download node_modules/es-abstract/2019/HourFromTime.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2019/HourFromTime.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/es-abstract/2019/HourFromTime.js
-
curl -L -o HourFromTime.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2019/HourFromTime.js
382 Bytes
| ; | |
| var floor = require('./floor'); | |
| var modulo = require('./modulo'); | |
| var timeConstants = require('../helpers/timeConstants'); | |
| var msPerHour = timeConstants.msPerHour; | |
| var HoursPerDay = timeConstants.HoursPerDay; | |
| // https://262.ecma-international.org/5.1/#sec-15.9.1.10 | |
| module.exports = function HourFromTime(t) { | |
| return modulo(floor(t / msPerHour), HoursPerDay); | |
| }; | |