Download node_modules/d3-time-format/src/isoFormat.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 287 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-time-format/src/isoFormat.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-time-format/src/isoFormat.js
-
curl -L -o isoFormat.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-time-format/src/isoFormat.js
287 Bytes
| import {utcFormat} from "./defaultLocale.js"; | |
| export var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ"; | |
| function formatIsoNative(date) { | |
| return date.toISOString(); | |
| } | |
| var formatIso = Date.prototype.toISOString | |
| ? formatIsoNative | |
| : utcFormat(isoSpecifier); | |
| export default formatIso; | |