|
Set startTime and endTime based on time semantic data.
- If an hour is specified, the startTime will be that hour, end time will be 1.25 hours later.
- Resolving the 8 am vs 8 pm ambiguity. If am/pm specified, then no ambiguity. If day is today (or not specified) and am time has passed, then no ambiguity. Only ambiguous 1-12 (i.e. 13 is in pm). Ambiguity can be resolved by morning, afternoon, evening. If ambiguity is not resolved, assume am. TODO: Improve the above comment and make sure it matches the code.
- am: midnight - noon
- pm: noon - midnight
- night: 5pm - 1am
- tonight: 5pm - 1am
- morning: 5am - noon
- day: 5am - 7pm
- afternoon: noon - 6pm
- evening: 3pm - 11pm
|