Skip to main content

Module time_expression

Module time_expression 

Source
Expand description

upstream common/parsers/AbstractTimeExpressionParser.ts.

Implement TimeExpressionParser for a locale and wrap it: Box::new(TimeExpression::new(p)). Upstream’s super.extractPrimaryTimeComponents(...) is extract_primary_time_components, and super.extractFollowingTimeComponents(...) is extract_following_time_components.

Structs§

TimeExpression
The concrete AbstractTimeExpressionParser: pattern caching and the extract flow.

Constants§

AM_PM_HOUR_GROUP
HOUR_GROUP
MILLI_SECOND_GROUP
MINUTE_GROUP
SECOND_GROUP

Traits§

TimeExpressionParser
The abstract members of AbstractTimeExpressionParser, with upstream’s defaults.

Functions§

extract_following_time_components
upstream extractFollowingTimeComponents (the base implementation). May adjust result.start.
extract_primary_time_components
upstream extractPrimaryTimeComponents (the base implementation).