22 lines
563 B
JavaScript
22 lines
563 B
JavaScript
"use strict";
|
|
exports.TimestampMillisecondsParser = void 0;
|
|
var _index = require("../../../constructFrom.cjs");
|
|
var _Parser = require("../Parser.cjs");
|
|
|
|
var _utils = require("../utils.cjs");
|
|
|
|
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;
|