Extension of Level-8: Intelligent Date Inference#3
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extension of Level-8: Intelligent Date Inference
This PR implements intelligent date inference for
DeadlineandEventtasks when users provide only time without specifying a date.Changes Made
1. Deadline Feature Enhancement
/bycontains only time (e.g.,1800,6:00 PM), the system now defaults to today's datedeadline submit report /by 1800→ deadline set to 18:00 today2. Event Feature Enhancement
Implemented smart date inference logic for events when one field has date+time and the other has only time:
Case A:
/fromhas date+time,/tohas only timeto_time≥from_time: Uses same date as/fromevent meeting /from 2020-02-28 1700 /to 1900→ Feb 28 17:00 to Feb 28 19:00to_time<from_time: Uses next dayevent meeting /from 2020-02-28 1700 /to 0200→ Feb 28 17:00 to Feb 29 02:00Case B:
/fromhas only time,/tohas date+timefrom_time≤to_time: Uses same date as/toevent meeting /from 1400 /to 2020-03-01 1700→ Mar 01 14:00 to Mar 01 17:00from_time>to_time: Uses previous dayevent meeting /from 2000 /to 2020-03-01 1700→ Feb 29 20:00 to Mar 01 17:003. DateTimeParser Enhancement
am,AM,pm,PM,Am,Pm, etc.