Class ENDayMonthYearParser
java.lang.Object
io.github.hashadex.naturaldateinput.parsers.Parser
io.github.hashadex.naturaldateinput.parsers.templates.MonthNameParser
io.github.hashadex.naturaldateinput.parsers.en.ENDayMonthYearParser
English parser that handles day-month-year dates like "3rd of August, 2025".
The day and the year are optional. If the day is missing, it is assumed to
be 1. If the year is missing, it is implied based on the reference date.
If this parser finds an invalid day, it will shift the start index so
the invalid day would not get included in the resulting
ParsedComponent
.
For example, the date "32nd of April, 2025" would be parsed as "April, 2025".
- Since:
- 1.0.0
- Author:
- hashadex
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.hashadex.naturaldateinput.parsers.Parser
Parser.ParsedComponent, Parser.ParsedComponentBuilder
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.github.hashadex.naturaldateinput.parsers.templates.MonthNameParser
parseMatch
Methods inherited from class io.github.hashadex.naturaldateinput.parsers.Parser
parse, parse, toRegexAlternate
-
Constructor Details
-
ENDayMonthYearParser
public ENDayMonthYearParser()Constructs the parser.- Since:
- 1.0.0
-