Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add missing `deprecated` pragma (#11100) [ci skip] | Oscar Nihlgård | 2019-04-24 | 1 | -1/+1 |
| | |||||
* | Fix header inconsistencies in documentation (#11071) | Zed | 2019-04-23 | 1 | -6/+7 |
| | |||||
* | Strformat symbol binding (#10927) | Arne Döring | 2019-04-05 | 1 | -0/+8 |
| | |||||
* | newruntime: progress | Araq | 2019-04-01 | 1 | -1/+1 |
| | |||||
* | make 'nim doc times.nim' work on old versions of OSX again | Andreas Rumpf | 2019-03-04 | 1 | -1/+1 |
| | |||||
* | times.nim: Fix docs for duration conversion procs [ci skip] (#10770) | ee7 | 2019-03-02 | 1 | -5/+5 |
| | |||||
* | times.nim: avoid some stdlib dependencies | Araq | 2019-02-20 | 1 | -5/+5 |
| | |||||
* | Replace the duration conversion procs with new improved ones (#10710) | Oscar Nihlgård | 2019-02-19 | 1 | -56/+156 |
| | |||||
* | better docs: times | narimiran | 2019-02-13 | 1 | -27/+93 |
| | |||||
* | New implementation of times.between (#10523) | Oscar Nihlgård | 2019-02-06 | 1 | -81/+94 |
| | | | | | | | | * Refactor ttimes * New implementation of times.between * Deprecate times.toTimeInterval | ||||
* | times.nim: make it compile on older OSX versions | Andreas Rumpf | 2019-02-04 | 1 | -1/+14 |
| | |||||
* | Deprecate the times.countX procs (#10522) | Oscar Nihlgård | 2019-02-01 | 1 | -4/+16 |
| | |||||
* | times: use clock_gettime() for epochTime() (#10499) | alaviss | 2019-01-30 | 1 | -12/+4 |
| | | | | | | | | | | | * times: use clock_gettime() for epochTime() Fixes #10494 * times: remove gettimeofday() As FreeBSD and OSX support CLOCK_REALTIME, there's no reason to keep this code around. | ||||
* | Revert export of times.CTime; add std/time_t instead. (#10319) | Oscar Nihlgård | 2019-01-16 | 1 | -7/+4 |
| | | | | | * Revert export of times.CTime * Add std/time_t | ||||
* | Expose CTime (#10301) | genotrance | 2019-01-14 | 1 | -3/+3 |
| | |||||
* | Times cosmetic changes (#10237) | Oscar Nihlgård | 2019-01-10 | 1 | -329/+374 |
| | | | | | | | | | | * Add more Date wrappers to jscore * Times cosmetic changes - Improved docs - Code wrapped at 80 chars - Formatting fixes using nimpretty - Remove some old deprecated procs | ||||
* | refs #10121 (#10124) | Timothee Cour | 2018-12-30 | 1 | -1/+2 |
| | |||||
* | Don't use parseutils.parseInt in the times module (#10028) | Oscar Nihlgård | 2018-12-22 | 1 | -39/+67 |
| | |||||
* | times.nim: Minor formatting change in the example code | Araq | 2018-12-04 | 1 | -1/+1 |
| | |||||
* | times: use clock_gettime for cpuTime with POSIX (#9793) | Emery Hemingway | 2018-11-26 | 1 | -3/+13 |
| | | | | | | The POSIX 'clock()' procedure returns process CPU time in an implementation specific unit, which for historical reasons can be as large as ~7ms in the case of FreeBSD. Use 'clock_gettime' for higher accuracy. | ||||
* | updated tests to be executed | Arne Döring | 2018-11-23 | 1 | -1/+6 |
| | |||||
* | Times module cosmetic changes (#9770) | Oscar Nihlgård | 2018-11-20 | 1 | -33/+22 |
| | |||||
* | removes deprecated T/P types | Araq | 2018-11-16 | 1 | -3/+0 |
| | |||||
* | times - remove unneeded negative sign when parsing formats z and zz (#9631) | pgkos | 2018-11-06 | 1 | -3/+3 |
| | | | | | | * fix wrong utcoffset sign for formats z and zz * add tests for the timezone offset formats | ||||
* | Fix times 32-bit issue | Oscar Nihlgård | 2018-10-19 | 1 | -2/+4 |
| | |||||
* | times.nim: minor code cleanup | Araq | 2018-08-31 | 1 | -3/+2 |
| | |||||
* | Don't assume utcOffset == +0 for old dates on Windows (#8744) | Oscar Nihlgård | 2018-08-23 | 1 | -0/+11 |
| | |||||
* | Cleanup ttimes (#8714) | Oscar Nihlgård | 2018-08-22 | 1 | -7/+3 |
| | | | | | | * Refactor fromWinTime * Cleanup ttimes | ||||
* | times.Timezone changes (#8527) | Oscar Nihlgård | 2018-08-17 | 1 | -63/+139 |
| | | | | | | | | | | * Use floorDiv in times.nim * New implementation of times.Timezone * Tweak doc comments * Fix typo | ||||
* | Haiku support for Nim (#8542) | alaviss | 2018-08-14 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * posix_other: Haiku now has spawn.h This is added per https://dev.haiku-os.org/ticket/13446 * posix_other: Add Haiku specific Dirent members * cpuinfo: Add an implementation for Haiku * distros: Add basic Haiku support * encodings: update Haiku support * fenv, math: Haiku now provides libm * times: Add Haiku struct members * ansi_c, osalloc: Add Haiku constants * threads: Add Haiku support * testament: Haiku uses LIBRARY_PATH * nim.cfg: Update Haiku support libnetwork should only be linked if network functions are used * threads: Haiku does not support -pthread switch * tworkingdir: Haiku's env is in /bin * posix_other: add SIGKILLTHR for Haiku * sockets: link with libnetwork on Haiku * coro: correct ucontext.h location http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html * coro: ucontext backend is not available on Haiku Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX * coro: fix setjmp backend The compiler does not allow statements after a noreturn function * nativesockets: Haiku doesn't support AI_V4MAPPED * system: hostOS can contains "haiku" * os: add support for Haiku's packagefs packagefs is read-only, but there are writable holes to the underlying file system as well * os: update constant for Haiku | ||||
* | Use enum string values in times.nim (#8413) | Oscar Nihlgård | 2018-07-23 | 1 | -16/+19 |
| | |||||
* | fix #8273 times format regression, and fix inconsistent ordering in 1 format ↵ | Timothee Cour | 2018-07-16 | 1 | -29/+29 |
| | | | | | | | | | | | | | | overload (#8290) * Fix issue #8273 [regression] [times.format] Error: attempting to call undeclared routine: 'format' * rename format to f for consistency with other overloads and avoid similar bugs as #8273 * breaking change since PR 8094: changed format*(f: TimeFormat, dt: DateTime) to format*(dt: DateTime, f: TimeFormat) for consistency w other overloads * use consistent ordering for times.parse procs | ||||
* | New implementations of times.parse & times.format (#8094) | Oscar Nihlgård | 2018-07-09 | 1 | -554/+822 |
| | |||||
* | Unexport times.stringifyUnit (#8168) | Oscar Nihlgård | 2018-07-01 | 1 | -8/+6 |
| | |||||
* | Change inconsistent paramaters in times.nim (#8091) | Oscar Nihlgård | 2018-06-23 | 1 | -28/+19 |
| | |||||
* | [change] Replace mutators with their more generic versions | Michael Voronin | 2018-06-06 | 1 | -37/+22 |
| | |||||
* | [add] Add fraction of seconds to parse/format utils | Michael Voronin | 2018-05-31 | 1 | -60/+75 |
| | |||||
* | [add] add between function to calculate TI between two datetimes | Michael Voronin | 2018-05-31 | 1 | -0/+103 |
| | |||||
* | [add] Add procs for TimeInterval stringify | Michael Voronin | 2018-05-31 | 1 | -1/+34 |
| | |||||
* | [add+change] Added toDurationParts proc to convert Duration to ↵ | Michael Voronin | 2018-05-31 | 1 | -22/+53 |
| | | | | array[FixedTimeUnit, int64] of it's human-readable parts, use it in `$Duration` | ||||
* | [doc] Standardize deprecation warnings | Michael Voronin | 2018-05-10 | 1 | -8/+7 |
| | |||||
* | [add] Add some wrappers | Michael Voronin | 2018-05-10 | 1 | -0/+20 |
| | |||||
* | [refactoring] Rearrange functions for better readability/usage | Michael Voronin | 2018-05-10 | 1 | -139/+155 |
| | |||||
* | [doc] Add/modify some runnable examples for pure/times | Michael Voronin | 2018-05-10 | 1 | -36/+104 |
| | |||||
* | [fix] Little fix for runnable example in pure/times | Michael Voronin | 2018-05-10 | 1 | -1/+1 |
| | |||||
* | Merge pull request #7624 from skilchen/fix-issue7620 | Dominik Picheta | 2018-05-03 | 1 | -7/+15 |
|\ | | | | | there is no hour 0 in am/pm time (see #7620) | ||||
| * | there is no hour 0 in am/pm time | skilchen | 2018-04-16 | 1 | -7/+15 |
| | | |||||
* | | times.nim: don't rely on zero terminator | Andreas Rumpf | 2018-04-29 | 1 | -47/+50 |
| | | |||||
* | | Rename `Time.nanoseconds` to `nanosecond` (#7673) | Oscar Nihlgård | 2018-04-25 | 1 | -30/+30 |
| | | | | | | | | | | | | * Rename `Time.nanoseconds` to `nanosecond` * Fix bug with Duration comparision | ||||
* | | Add `fromWinTime` and deprecate `unixTimeToWinTime`/`winTimeToUnixTime` (#7641) | Oscar Nihlgård | 2018-04-19 | 1 | -13/+26 |
| | |