Class TrivialDateSuggestionEngine
Hierarchy
-
TrivialDateSuggestionEngine
Methods
Private createSuggestionsForFragments
- createSuggestionsForFragments(fragments: string[], today: Moment): DateSuggestion[]
-
Parameters
-
fragments: string[]
-
today: Moment
Private findNextValidDate
- findNextValidDate(startDate: LocalDate, incementor: function, today: Moment): Moment
-
Parameters
-
-
incementor: function
-
today: Moment
Returns Moment
generateSuggestions
- generateSuggestions(searchString: string, now: Moment | Date): DateSuggestion[]
-
Parameters
-
searchString: string
-
now: Moment | Date
generateSuggestionsForDigitsOnlyInput
- generateSuggestionsForDigitsOnlyInput(input: string, today: Moment): DateSuggestion[]
-
Parameters
-
input: string
-
today: Moment
todayOrFavoriteDirection
- todayOrFavoriteDirection(m: Moment, today: Moment): boolean
-
Parameters
Returns boolean
Static Private createSuggestion
-
Parameters
-
moment: Moment
-
ymdOrder: string
Static dateFormatToYmdOrder