summary refs log tree commit diff stats
path: root/lib/pure/times.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes #13558: toDateTime buggy on 29th, 30th and 31th of each month; ↵Timothee Cour2020-03-111-13/+3
| | | | breaking change: do not use `now` to compute result, was undocumented and non-sensical (#13565)
* fixes #13543 and added times.isLeapDay (#13547)Timothee Cour2020-03-011-0/+13
|
* Add sideEffect pragma to importC procs in posix, winlean and time module ↵Tomohiro2020-02-081-3/+3
| | | | | | | | | (#13370) * Add sideEffect pragma to procs in winlean * Add sideEffect pragma to procs in posix * Add test for #13306 * Add sideEffect pragma to procs in times * Fixes #13306
* [backport] times/getClockStr(): fix mistake in doc (#13229) [ci skip]Milan2020-01-221-1/+1
|
* fixes a critical times.nim bug reported on IRC [backport] (#13216)Andreas Rumpf2020-01-211-2/+3
|
* times: toUnixFloat, fromUnixFloat (#13044)Timothee Cour2020-01-181-9/+28
|
* style fix: change 'JS' to 'js' to make it consistent (#13168)Miran2020-01-161-7/+7
|
* [minor] fix doc for $(Time) (#12795) [backport]Timothee Cour2019-12-031-1/+1
|
* fix documentation of `$`*(dt: DateTime) (#12660)David Krause2019-11-151-1/+1
| | | | (cherry picked from commit 39122ecd93854dd696aad2a5a0a5ad04d6dcdbfa)
* [backport] run nimpretty on the remaining filesnarimiran2019-09-301-74/+88
|
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-4/+4
|
* makes tests green againAndreas Rumpf2019-09-211-9/+9
|
* Add std/monotimes which implements monotonic timestamps (#11712)Andreas Rumpf2019-07-151-9/+16
|\ | | | | | | | | | | * [feature] Added std/monotimes * [other] Minor optimization in times
| * [other] Minor optimization in timesOscar Nihlgård2019-07-121-9/+12
| |
| * [feature] Added std/monotimesOscar Nihlgård2019-07-121-0/+4
| |
* | times: use posix constant instead of import (#11692)Jacek Sieka2019-07-131-9/+4
|/ | | | | | * times: use posix constant instead of import * simplify clock id usage
* there is only one style -- my styleAraq2019-07-101-0/+8
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-12/+12
| | | | --styleCheck:error
* ABI fixes for OSX/BSD; fixes #6860 (#11666)Andreas Rumpf2019-07-061-1/+1
|
* Documentation improvements to the times module (#11639)Graeme Cross2019-07-031-27/+27
| | | | | * Typo and grammar fixes for the times module * Minor typo fixes to the times module
* fixes #7167 (#11300)Andreas Rumpf2019-05-221-1/+1
| | | | | | * fixes #7167 * spec: distinct types can be ordinal types * bootstrapping issue
* getDateStr and getClockStr takes a default parameter (#11108)liuxiaodong2019-05-211-4/+6
|
* make epochTime available in DLLs; refs #6855Araq2019-05-101-50/+49
|
* Allow for locale-based parsing/formatting of dates (#11170)Matt Haggard2019-05-081-91/+57
| | | | | | | | | | | | | | | * Allow for locale-based parsing/formatting of dates * Updates based on review feedback of PR 11170 DateTimeLocale arrays are now indexed by Month and WeekDay enums. More sane date used for testing. Documentation newline. Case change of DefaultLocale (and make it public) * Add changelog entry for DateTimeLocale addition to times module * Use pattern symbols for DateTimeLocale attribute names
* Add missing `deprecated` pragma (#11100) [ci skip]Oscar Nihlgård2019-04-241-1/+1
|
* Fix header inconsistencies in documentation (#11071)Zed2019-04-231-6/+7
|
* Strformat symbol binding (#10927)Arne Döring2019-04-051-0/+8
|
* newruntime: progressAraq2019-04-011-1/+1
|
* make 'nim doc times.nim' work on old versions of OSX againAndreas Rumpf2019-03-041-1/+1
|
* times.nim: Fix docs for duration conversion procs [ci skip] (#10770)ee72019-03-021-5/+5
|
* times.nim: avoid some stdlib dependenciesAraq2019-02-201-5/+5
|
* Replace the duration conversion procs with new improved ones (#10710)Oscar Nihlgård2019-02-191-56/+156
|
* better docs: timesnarimiran2019-02-131-27/+93
|
* New implementation of times.between (#10523)Oscar Nihlgård2019-02-061-81/+94
| | | | | | | | * Refactor ttimes * New implementation of times.between * Deprecate times.toTimeInterval
* times.nim: make it compile on older OSX versionsAndreas Rumpf2019-02-041-1/+14
|
* Deprecate the times.countX procs (#10522)Oscar Nihlgård2019-02-011-4/+16
|
* times: use clock_gettime() for epochTime() (#10499)alaviss2019-01-301-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ård2019-01-161-7/+4
| | | | | * Revert export of times.CTime * Add std/time_t
* Expose CTime (#10301)genotrance2019-01-141-3/+3
|
* Times cosmetic changes (#10237)Oscar Nihlgård2019-01-101-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 Cour2018-12-301-1/+2
|
* Don't use parseutils.parseInt in the times module (#10028)Oscar Nihlgård2018-12-221-39/+67
|
* times.nim: Minor formatting change in the example codeAraq2018-12-041-1/+1
|
* times: use clock_gettime for cpuTime with POSIX (#9793)Emery Hemingway2018-11-261-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 executedArne Döring2018-11-231-1/+6
|
* Times module cosmetic changes (#9770)Oscar Nihlgård2018-11-201-33/+22
|
* removes deprecated T/P typesAraq2018-11-161-3/+0
|
* times - remove unneeded negative sign when parsing formats z and zz (#9631)pgkos2018-11-061-3/+3
| | | | | | * fix wrong utcoffset sign for formats z and zz * add tests for the timezone offset formats
* Fix times 32-bit issueOscar Nihlgård2018-10-191-2/+4
|
* times.nim: minor code cleanupAraq2018-08-311-3/+2
|