Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/date-fns/date-fns
/ valueCallback
Method
valueCallback
pkgs/core/src/parse/_lib/parsers/YearParser.ts:28–31 ·
view source on GitHub ↗
(year: number)
Source
from the content-addressed store, hash-verified
26
match: Match,
27
): ParseResult<YearParserValue> {
28
const
valueCallback = (year: number) => ({
29
year,
30
isTwoDigitYear: token ===
"yy"
,
31
});
32
33
switch (token) {
34
case
"y"
:
Callers
2
buildMatchFn
Function · 0.45
buildMatchPatternFn
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected