Initial commit
This commit is contained in:
21
node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js
generated
vendored
Normal file
21
node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
exports.TimestampMillisecondsParser = void 0;
|
||||
var _index = require("../../../constructFrom.js");
|
||||
var _Parser = require("../Parser.js");
|
||||
|
||||
var _utils = require("../utils.js");
|
||||
|
||||
class TimestampMillisecondsParser extends _Parser.Parser {
|
||||
priority = 20;
|
||||
|
||||
parse(dateString) {
|
||||
return (0, _utils.parseAnyDigitsSigned)(dateString);
|
||||
}
|
||||
|
||||
set(date, _flags, value) {
|
||||
return [(0, _index.constructFrom)(date, value), { timestampIsSet: true }];
|
||||
}
|
||||
|
||||
incompatibleTokens = "*";
|
||||
}
|
||||
exports.TimestampMillisecondsParser = TimestampMillisecondsParser;
|
||||
Reference in New Issue
Block a user