mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-10 22:36:58 +08:00
Initial commit: NOFX AI Trading System
- Multi-AI competition mode (Qwen vs DeepSeek) - Binance Futures integration - AI self-learning mechanism - Professional web dashboard - Complete risk management system
This commit is contained in:
26
web/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs
generated
vendored
Normal file
26
web/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
exports.FractionOfSecondParser = void 0;
|
||||
var _Parser = require("../Parser.cjs");
|
||||
|
||||
var _utils = require("../utils.cjs");
|
||||
|
||||
class FractionOfSecondParser extends _Parser.Parser {
|
||||
priority = 30;
|
||||
|
||||
parse(dateString, token) {
|
||||
const valueCallback = (value) =>
|
||||
Math.trunc(value * Math.pow(10, -token.length + 3));
|
||||
return (0, _utils.mapValue)(
|
||||
(0, _utils.parseNDigits)(token.length, dateString),
|
||||
valueCallback,
|
||||
);
|
||||
}
|
||||
|
||||
set(date, _flags, value) {
|
||||
date.setMilliseconds(value);
|
||||
return date;
|
||||
}
|
||||
|
||||
incompatibleTokens = ["t", "T"];
|
||||
}
|
||||
exports.FractionOfSecondParser = FractionOfSecondParser;
|
||||
Reference in New Issue
Block a user