Improved -; fixed tests
* added prefix `-` operator for TimeInterval * improved `-` for both TimeInterval and TimeInfo * Fixed a DST test
This commit is contained in:
parent
544a2cfe1a
commit
aa08c32c2b
2 changed files with 17 additions and 20 deletions
|
|
@ -219,7 +219,7 @@ block dstTest:
|
|||
# January and one in July to maximize the probability to hit one date with DST
|
||||
# and one without on the local machine. However, this is not guaranteed.
|
||||
let
|
||||
parsedJan = parse("2016-01-05 04:00:00+01:00", "yyyy-MM-dd HH:mm:sszzz")
|
||||
parsedJul = parse("2016-07-01 04:00:00+01:00", "yyyy-MM-dd HH:mm:sszzz")
|
||||
parsedJan = parse("2016-01-05 04:00:00+01:00", "yyyy-MM-ss HH:mm:sszzz")
|
||||
doAssert toTime(parsedJan) == fromSeconds(1452394800)
|
||||
doAssert toTime(parsedJan) == fromSeconds(1451962800)
|
||||
doAssert toTime(parsedJul) == fromSeconds(1467342000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue