Spaces:
Configuration error
Configuration error
Download node_modules/es-abstract/5/YearFromTime.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/5/YearFromTime.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/es-abstract/5/YearFromTime.js
-
curl -L -o YearFromTime.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/5/YearFromTime.js
407 Bytes
| ; | |
| var GetIntrinsic = require('get-intrinsic'); | |
| var $Date = GetIntrinsic('%Date%'); | |
| var callBound = require('call-bind/callBound'); | |
| var $getUTCFullYear = callBound('Date.prototype.getUTCFullYear'); | |
| // https://262.ecma-international.org/5.1/#sec-15.9.1.3 | |
| module.exports = function YearFromTime(t) { | |
| // largest y such that this.TimeFromYear(y) <= t | |
| return $getUTCFullYear(new $Date(t)); | |
| }; | |