v1.0 with SW PWA enabled
This commit is contained in:
17
frontend/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.mjs
generated
vendored
Normal file
17
frontend/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.mjs
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
import { constructFrom } from "../../../constructFrom.mjs";
|
||||
import { Parser } from "../Parser.mjs";
|
||||
import { parseAnyDigitsSigned } from "../utils.mjs";
|
||||
|
||||
export class TimestampSecondsParser extends Parser {
|
||||
priority = 40;
|
||||
|
||||
parse(dateString) {
|
||||
return parseAnyDigitsSigned(dateString);
|
||||
}
|
||||
|
||||
set(date, _flags, value) {
|
||||
return [constructFrom(date, value * 1000), { timestampIsSet: true }];
|
||||
}
|
||||
|
||||
incompatibleTokens = "*";
|
||||
}
|
||||
Reference in New Issue
Block a user