| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* Refactor fromWinTime
* Cleanup ttimes
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Use floorDiv in times.nim
* New implementation of times.Timezone
* Tweak doc comments
* Fix typo
|
| |
|
|\ |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* add distinct types to json 'to' macro
* fix json 'to' macro and add more test
|
| |
|
| |
|
|\ |
|
| | |
|
|/ |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
* Fix os.unixToNativePath proc returns wrong result(#8179)
* Add tests for unixToNativePath
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Make PEG AST nodes readable from outside the module.
* Added a test module for the pegs stdlib module.
* Edited changelog.
* Renamed ``sons`` iterator to ``items``, added ``pairs``, inlined both.
* Updated entry and moved it to the right category.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add MemMapFileStream
* Added tests
* Fixed bug in memfiles (zero index for string)
* Added flush to changelog
* Attempt to fix Win's nuances
* Fix attempt to fix
* Continue...
* And again...
* Reworked tests (all for win on Win)
* Fixes in flush (Win)
* Replace fn vars to consts
* Added the attempts parameter to the flush
* Replace while to for
* Move to memfiles
* Use Natural instead of uint
* Better error messages for append mode. Handle specific cases.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* clarify `parseHexInt`, `parseOctInt` docstring and exception msgs
* add `parseBinInt` based on `parseutil.parseBin` implementation
Adds a `parseBinInt`, which parses a binary integer string and returns
it as an integer. This is based on the implementation of
`parseutil.parseBin`, removing the unnecessary parts.
* add tests for all `parse(Hex|Oct|Bin)Int` procs
* replace `parse*Int` proc impls by call to parseutil procs
Replaces the `parse(Hex|Oct|Bin)Int` procedure implementation by calls
to the `parseutil` procs, which receive a mutable argument.
Has the main advantage that the empty string as well as a "prefix
only" string, e.g. "0x" counts as an invalid integer.
Also moves the `parseOctInt` proc further up in the file so that all
`parse` procs are below one another.
* replace `var L` by `let L` in `parse` procs
There's no reason for the usage of `var` here.
* add `maxLen` optional arg for `parseutil.parse(Oct|Bin)`
Plus small change to test cases.
* update changelog about `parse*Int` procs
* fix `rejectParse` template in `tstrutils`
* make sure only `s.len` chars are parsed, if `maxLen+start` > s.len
Fixes a previous bug in `parseHex` (and now affected `parseOct` and
`parseBin`), which allowed to set `start + maxLen` to be larger than
the strings length. This resulted in an out of bounds access.
* move `parse*Int` proc change to breaking changes, add double `
|
| |
|
|
|
|
|
|
|
|
| |
* fix strformat handling of neg zero with sign
* better tests for neg zero with sign
* use inplace insertion of the sign as suggested by Varriount
|
|
|
|
|
|
|
|
| |
* fix strformat precision handling for strings
* add some limited unicode awareness to the precision handling for strings
* improvement suggested by Varriount: use setLen and runeOffset instead of runeSubstr
|
| |
|
| |
|
| |
|
|\
| |
| | |
there is no hour 0 in am/pm time (see #7620)
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
* Rename `Time.nanoseconds` to `nanosecond`
* Fix bug with Duration comparision
|
|/ |
|
|
|
|
|
|
| |
* TimeInterval optimization
* Fix typo in `$`(Duration)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add deprecation warnings to recently deprecated procs
* Fix bad usage of the times module
* Introduce sub second resolution
* Fix usage of C's time()
* Switch to nanosecond resolution
* Make Time & Duration opaque again and fix some errors
* Change back to TimeInterval for shorthands
* Fix JS test
* Fix build error for windows
* Undeprecate epochTime
* Documentation and minor changes
* Lots of bugfixes and doc comments
* Attempt to make travis & appveyor green
* Fix edge cases for dealing with the local timezone
* Workaround JS backend overflow/underflow bug
* Use better workaround for not knowing the size of time_t
* Use all available timezones for tests
* Fix indentation
* Add procs for accessing the fractional part of a duration
* Order time units from smallest to largest since it makes more sense
* Include months and years in `TimeUnit`
* Review fix
|
| |
|
|\
| |
| | |
Fixes #6902
|
| | |
|
|\ \
| | |
| | | |
Fix algorithm.fill for empty input
|
| | | |
|
|\ \ \
| | | |
| | | | |
Conversion procs for (IpAddress, Port) <-> (SockAddr, Socklen)
|
| |/ / |
|
| |/
|/| |
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Add string-to-hex and back conversions
|