Nim/lib/pure
Jonathan Bernard 68d3486f5a Bugfix for times.initInterval (issue #4889)
`initInterval` had logic to calculate and carry overflowed fields (65 seconds
turns into 5 seconds and carries 1 minute). However, we were not including that
carried value when we recalculate the carry over for the next period of time.So
if you had, for example, 3600 seconds, we carried 60 minutes into the minutes
calculation, but when we calculated how much we should carry into the hours
value we only considered what the user originally supplied for the minutes
field, and forgot to include those 60 carried minute.

So, for example, with the previous implementation this was true:

`seconds(60 * 60 * 24) == seconds(0)`

Or, as failing tests:

```nimrod
import times

assert seconds(60 * 60 * 24) != seconds(0)
assert seconds(60 * 60 * 24) == days(1)
```
2016-10-12 15:44:21 -05:00
..
collections fixes #4844 2016-10-08 10:47:47 +02:00
concurrency Add a lock to prevent race condition 2016-08-24 22:01:37 +07:00
includes Fixes pesky hint in asyncfutures. 2016-10-01 00:09:17 +02:00
ioselects Add support for kqueue's EVFILT_VNODE (filesystem monitoring), and add test for it. 2016-09-24 05:16:39 +03:00
unidecode lib: Trim .nim files trailing whitespace 2015-09-04 23:03:56 +02:00
algorithm.nim algorithm: sort: fix link in documentation 2016-09-15 04:20:24 +02:00
asyncdispatch.nim made async compile again 2016-09-26 23:31:36 +02:00
asyncdispatch.nim.cfg Rename *.nimrod.cfg to *.nim.cfg 2015-02-03 09:04:24 +01:00
asyncfile.nim Some small fixes to changes introduced by #4683. 2016-09-06 20:35:02 +02:00
asyncftpclient.nim Merge branch 'asyncftp-add-removeDir' of https://github.com/pyloor/Nim into pyloor-asyncftp-add-removeDir 2016-09-25 13:11:02 +02:00
asynchttpserver.nim Fixes #3847. 2016-09-25 13:02:10 +02:00
asyncmacro.nim FutureVar[T] parameters are now completed automatically. 2016-09-25 16:05:22 +02:00
asyncnet.nim Fixes #4587. 2016-09-25 19:26:28 +02:00
base64.nim Fixed base64 encode 2016-04-11 16:47:18 +03:00
basic2d.nim docgen fixes for basic2d 2016-09-26 19:26:39 +02:00
basic3d.nim docgen fixes for basic3d 2016-09-26 19:26:39 +02:00
browsers.nim Fix a few more warnings 2015-02-17 02:22:30 +01:00
cgi.nim udpated the compiler and tester to use getOrDefault 2015-10-13 14:10:33 +02:00
colors.nim nimrod -> nim 2016-02-05 19:11:43 +01:00
complex.nim lib: Trim .nim files trailing whitespace 2015-09-04 23:03:56 +02:00
cookies.nim lib: Trim .nim files trailing whitespace 2015-09-04 23:03:56 +02:00
coro.nim Fix building documentation in releases (fixes #3823) 2016-02-21 14:52:26 +01:00
coro.nimcfg fix test failure in coro.nim 2015-10-01 12:05:45 -07:00
db_common.nim Fixes docgen for lib/pure/db_common.nim. 2016-01-05 15:56:13 +00:00
dynlib.nim Added checks for CPP 2016-02-28 17:25:12 +06:00
encodings.nim Removed libiconv prefix (on OS X) to make encodings compile on OS X. 2015-10-28 20:36:09 +01:00
endians.nim lib: Trim .nim files trailing whitespace 2015-09-04 23:03:56 +02:00
etcpriv.nim lib: Trim .nim files trailing whitespace 2015-09-04 23:03:56 +02:00
events.nim makes tests green 2016-01-15 14:44:54 +01:00
fenv.nim Fix fenv.fpRadix 2015-03-24 03:36:34 +01:00
fsmonitor.nim Added missing modules to lib.txt and warnings to some module's docs. 2016-01-18 15:33:39 +00:00
future.nim stdlib and compiler don't use .immediate anymore 2016-07-29 23:51:01 +02:00
gentabs.nim Added missing modules to lib.txt and warnings to some module's docs. 2016-01-18 15:33:39 +00:00
hashes.nim added hash procs for handling portions of strings/arrays/seqs. 2015-10-07 13:03:31 +10:00
htmlgen.nim fixes #3474 2015-10-25 02:38:33 +02:00
htmlparser.nim Make htmlparser compile without warnings 2016-09-09 16:15:53 +02:00
httpclient.nim Add example for posting json content 2016-10-12 13:58:34 +02:00
httpcore.nim Add PATCH HTTP Method. 2016-09-25 11:48:10 +02:00
httpserver.nim Added missing modules to lib.txt and warnings to some module's docs. 2016-01-18 15:33:39 +00:00
ioselectors.nim Add support for kqueue's EVFILT_VNODE (filesystem monitoring), and add test for it. 2016-09-24 05:16:39 +03:00
json.nim Add few JSON examples 2016-09-29 15:56:22 +01:00
lexbase.nim Lexbase compatible with JS 2016-01-06 16:38:27 +02:00
logging.nim Enabled logging tests for js 2016-09-03 22:46:10 +03:00
marshal.nim Use array encoding for non-UTF-8 strings in marshal. Fixes #4779. 2016-09-16 17:02:34 +07:00
matchers.nim Deprecated matchers module. Fixes #2446. 2016-04-04 20:22:22 +01:00
math.nim Fixed #4532, VS2010 now can compile Nim 2016-08-08 20:24:33 +07:00
md5.nim docs now build again 2015-10-12 20:58:46 +02:00
memfiles.nim Add doco on mapMem(), extend doco on open(), and add extra lines space for readability 2016-08-05 20:55:25 +10:00
mersenne.nim Add copyright header 2016-07-21 08:54:30 +01:00
mimetypes.nim udpated the compiler and tester to use getOrDefault 2015-10-13 14:10:33 +02:00
nativesockets.nim Added 'android4' define support that declares a different gethostbyaddr. Fixes #4376 2016-06-22 20:50:18 +06:00
net.nim Fixes #3847. 2016-09-25 13:02:10 +02:00
nimprof.nim Enable embedded profiler to display filenames. 2016-08-02 19:19:31 +07:00
nimprof.nim.cfg Rename *.nimrod.cfg to *.nim.cfg 2015-02-03 09:04:24 +01:00
numeric.nim Added missing modules to lib.txt and warnings to some module's docs. 2016-01-18 15:33:39 +00:00
oids.nim Fixed race condition in genOid() 2016-08-23 13:57:03 +07:00
options.nim Fix options module to use new import name 2015-11-23 16:30:18 +01:00
os.nim os: always use pcLinkToDir as kind for links to directories 2016-09-17 18:32:45 +02:00
ospaths.nim Fixed findExe behaviour on Linux with symlinks relative paths 2016-07-20 12:56:11 +03:00
osproc.nim convert exitStatus to exit code 2016-09-30 10:19:57 +02:00
oswalkdir.nim Add copyright header 2016-07-21 08:53:10 +01:00
parsecfg.nim Add dash to SymChars 2016-07-28 07:47:19 +06:00
parsecsv.nim Improvements to parsecsv to include a minimalist DictReader #4285 2016-06-12 07:28:07 +01:00
parseopt.nim docs now build again 2015-10-12 20:58:46 +02:00
parseopt2.nim Prevent Exported C procedure collisions 2015-11-11 15:18:13 -05:00
parsesql.nim lib: Trim .nim files trailing whitespace 2015-09-04 23:03:56 +02:00
parseutils.nim added strscans stdlib module 2016-05-10 22:03:07 +02:00
parsexml.nim Add doc to parsexml.nim for template assertions 2016-07-02 17:19:03 -06:00
pegs.nim Fix modules that import both strutils and unicode 2016-07-01 07:37:49 -06:00
poly.nim Spellcheck 2016-02-29 11:25:51 +00:00
punycode.nim Add copyright header 2016-07-21 08:52:39 +01:00
random.nim Random module: fix links, improve header. 2016-07-18 21:42:47 +10:00
rationals.nim made test green for 32bit system 2016-09-30 22:14:29 +02:00
romans.nim Added missing modules to lib.txt and warnings to some module's docs. 2016-01-18 15:33:39 +00:00
ropes.nim Make ropes usable in VM context 2016-03-10 19:13:40 +06:00
scgi.nim udpated the compiler and tester to use getOrDefault 2015-10-13 14:10:33 +02:00
securehash.nim fixes #4760 2016-09-13 17:20:53 +02:00
selectors.nim docgen fixes for selectors.nim 2016-09-26 19:26:39 +02:00
smtp.nim Make SMTP example compile 2016-04-24 14:56:24 +02:00
smtp.nim.cfg Rename *.nimrod.cfg to *.nim.cfg 2015-02-03 09:04:24 +01:00
stats.nim made test green for 32bit system 2016-09-30 22:14:29 +02:00
streams.nim disable StringStream for JS (needs copyMem) 2016-06-08 22:00:13 +08:00
strmisc.nim moved expandTabs to strmisc 2016-06-15 17:15:27 +02:00
strscans.nim fixes #4562 2016-08-04 01:37:41 +02:00
strtabs.nim Allow to use strtabs module with js target 2016-09-08 10:21:00 +07:00
strutils.nim stdlib and compiler don't use .immediate anymore 2016-07-29 23:51:01 +02:00
subexes.nim documentation build cleaned up 2016-05-31 03:04:45 +02:00
terminal.nim Use new name for call to low-level terminalWidth. 2016-09-01 14:44:33 -04:00
times.nim Bugfix for times.initInterval (issue #4889) 2016-10-12 15:44:21 -05:00
typetraits.nim Nimrod renamed to Nim 2014-08-28 09:50:51 +02:00
unicode.nim update stdlib to not use deprecated symbols 2016-08-25 17:21:48 +02:00
unittest.nim unittest: Output suite name, nice formatting 2016-08-23 19:23:58 +02:00
uri.nim Fixed an wrong example of the doc 2016-03-02 20:55:02 +09:00
xmldom.nim In xmldom module added default attribute names checkfor namespace creation, see https://www.w3.org/XML/1998/namespace 2016-06-12 20:04:57 +03:00
xmldomparser.nim lib: Trim .nim files trailing whitespace 2015-09-04 23:03:56 +02:00
xmlparser.nim Add a test to xmlparser 2015-10-31 13:30:07 -05:00
xmltree.nim xmltree: separate escaping for attributes 2016-09-05 15:43:44 +07:00