Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve am/pm in elliptic left side of time-of-day interval #202

Open
rosastern opened this issue Oct 11, 2019 · 0 comments
Open

Resolve am/pm in elliptic left side of time-of-day interval #202

rosastern opened this issue Oct 11, 2019 · 0 comments
Assignees

Comments

@rosastern
Copy link
Collaborator

Initial issue reported: https://github.com/snipsco/next-release/issues/808

Parsing Error

The am/pm specifier from right side of time-of-day interval doesn't apply to elliptic left side

Version

platform v1.2

Language

en - other languages may be impacted too

Parser input

between 2 and 3pm

Parser output

+----+-----------+------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ix | log(p)    | p          | text                     | Output(OutputValue)                                                                                                                                                                                  |
+====+===========+============+==========================+======================================================================================================================================================================================================+
| 0  | -1.146101 | 0.31787375 | between two and three pm | DatetimeInterval(DatetimeIntervalOutput { interval_kind: Between { start: 2019-10-11T02:00:00+02:00, end: 2019-10-11T15:00:00+02:00, precision: Exact, latent: false }, datetime_kind: TimePeriod }) |
+----+-----------+------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Parser expected output (Optional)

+----+-----------+------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ix | log(p)    | p          | text                     | Output(OutputValue)                                                                                                                                                                                  |
+====+===========+============+==========================+======================================================================================================================================================================================================+
| 0  | -1.146101 | 0.31787375 | between two and three pm | DatetimeInterval(DatetimeIntervalOutput { interval_kind: Between { start: 2019-10-11T14:00:00+02:00, end: 2019-10-11T15:00:00+02:00, precision: Exact, latent: false }, datetime_kind: TimePeriod }) |
+----+-----------+------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@rosastern rosastern self-assigned this Oct 11, 2019
@rosastern rosastern added the bug label Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant