| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* Don't use factor var, it's overly complicated
* Removed proc that's now unused
* Better documented timezone field
|
|
|
|
|
|
| |
* Improved comments
* Improved spacing
* Use consts instead of magic numbers
|
|
|
|
|
|
| |
* `$` now uses format() with explicit time zone.
* Fixed errors in rendering "z", "zz" and "zzz"
* Updated tests
|
|
|
|
|
|
|
| |
* No mapping between TimeInfo.tzname and TimeInfo.timezone
* tzname of time.h is not well-defined, may have almost arbitrary
length, and localization may differ
* Code used hardcoded "UTC" string
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* mktime always interprets its input as local time even on systems where
gmtoff is present, so using it is utterly useless for anything but getting
the local timezone. Removed all other usage of gmtoff to avoid confusion.
* Properly handle timezone offset in toTime()
* Properly handle timezone offset in `$` because asctime also interprets its
input as local time
* Also tried to fix the JavaScript implementation
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Make createDir return discardable bool
|
| |
| |
| |
| | |
Better name for exposed primitive function, checks for pre-existing files
|
| |
| |
| |
| |
| | |
Should now properly work for root directories on Windows (after isAbsolute
is fixed)
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Add respond proc example
|
| | |
| | |
| | | |
Add an example for the respond proc demonstration JSON response.
|
|\ \ \
| | | |
| | | | |
Some useful macros
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Reset HttpClient if new URL has different port
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Table fixes. fixes #4901
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* added `==` for OrderedTable, CountTable and the *Ref types
* added missing documentation to all `==` procs
* fixed clear() for OrderedTables, which did not work because `var`
does not work well with `|`
* added tests
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Improve unittest docs
|
| |/ / / / / |
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Some changes to os.nim
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | | |
Fix for expandFilename().
Fix for getAppFilename().
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Fix isAbsolute for Windows root directories
|
| | |_|/
| |/| | |
|
|\ \ \ \
| | | | |
| | | | | |
Fix #4928
|
| |/ / / |
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Update httpclient documentation
|
| | | | |
|
|/ / / |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fix few typos
|
| | | | |
|
|/ / / |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
`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)
```
|
| | |
| | |
| | | |
i struggled to figure out how to post json content with nim's http client. this is a fundamental capability in many web apps, we don't always need to send data as multipart form data (e.g. when communicating via json apis) so frankly i'm surprised it isn't part of the "post" and "postContent" procs
|
|\ \ \
| | | |
| | | | |
Unify waitpid handling
|
| | | | |
|