Bugs in *from*/ *to* context
- Dominant language
- Haskell
- Stars
- 4.3k
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Are these bugs?
Now: Wednesday, 30 May 2018 at 17:53:17 -0700 (-07:00) :second
1. Query: From 3AM to 12 noon
Produces just the 12:00
Result: Thursday, 31 May 2018 at 12:00:00 -0700 (-07:00) :hour
2. Query: From 10AM to 1PM (From [hour1] to [hour2])
Hour2 seems to be +1'd every time.
Result: From Thursday, 31 May 2018 at 10:00:00 -0700 (-07:00) to Thursday, 31 May 2018 at **14:00:00** -0700 (-07:00) :hour
3. Query: 5 in the evening
Shouldn't it just return the time (and not an interval)?
The date too seems to be off.
Result: From Saturday, 1 January 2005 at 18:00:00 -0800 (-08:00) to Sunday, 2 January 2005 at 0:00:00 -0800 (-08:00) :hour
4. Query: 1 hour before 3 (or) 1 hour before 2 (or) 1 hour before -5
?
Result: Tuesday, 31 December 2002 at 23:00:00 -0800 (-08:00) :minute
Regards.
Contributor guide
Assessment
This issue has not been assessed yet.