Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add Week-Of-Year Implementation to Times Module (#17223) | Carlo Capocasa | 2022-01-03 | 1 | -0/+82 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * initial * more tests * Apply suggestions from code review idiomatize Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * test iron age dates * add examples * fix typo * consistent param mention * add since pragrams * add changelog * Update lib/pure/times.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * fix examples * fix negative years * add getWeeksInYear tests * add back fix dropped by rebase * week-year tuple api * add changelog * fix doc tags * add docstrings * fix typos Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> | ||||
* | remove deprecated stuffs from std/times (#18937) | flywind | 2021-10-13 | 1 | -25/+25 |
| | |||||
* | strict effects (#18777) | Andreas Rumpf | 2021-09-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | * fixes #17369 * megatest is green for --cpu:arm64 * docgen output includes more tags/raises * implemented 'effectsOf' * algorithm.nim: uses new effectsOf annotation * closes #18376 * closes #17475 * closes #13905 * allow effectsOf: [a, b] * added a test case * parameters that are not ours cannot be declared as .effectsOf * documentation * manual: added the 'sort' example * bootstrap with the new better options | ||||
* | fix #17072: add times.dateTime with ISO 8601 order (#18590) | Timothee Cour | 2021-07-28 | 1 | -11/+18 |
| | | | | | * fix #17072: add times.dateTime with ISO 8601 order * address comments | ||||
* | Missing spaces when compiling testament and nim_dbg. (#18403) | Endeg | 2021-06-30 | 1 | -2/+2 |
| | |||||
* | couple tiny typo fixes (#18344) | Smooth Operator | 2021-06-24 | 1 | -2/+2 |
| | |||||
* | [std/times]getTime now uses high resolution API on windows (#17901) | flywind | 2021-06-23 | 1 | -2/+3 |
| | |||||
* | [docs minor] close #17618 (#17620) | flywind | 2021-04-02 | 1 | -9/+12 |
| | | | | | | | | | * [docs minor] close #17618 * Update lib/pure/times.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> | ||||
* | doc times: do not use `now` (and also `epochTime`) for benchmarking (#17405) | Timothee Cour | 2021-03-18 | 1 | -1/+6 |
| | | | | | | | | | | | | | * doc times: do not use now for benchmarking * Update lib/pure/times.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update lib/pure/times.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> | ||||
* | refs #4347, add `ZZZ` and `ZZZZ` patterns for timezone offsets without ↵ | Miran | 2021-03-11 | 1 | -17/+29 |
| | | | | colons (#17318) | ||||
* | Replace double backticks with single backticks - Part 5 out of ~8 (#17217) | Danil Yarantsev | 2021-03-01 | 1 | -232/+232 |
| | | | Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> | ||||
* | Change stdlib imports to use std prefix in most examples (#17202) | Danil Yarantsev | 2021-02-28 | 1 | -1/+1 |
| | |||||
* | Correct all eggs (#15906) | Miran | 2020-11-10 | 1 | -1/+1 |
| | | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.". | ||||
* | fix mistake in times.nim docs | narimiran | 2020-07-07 | 1 | -1/+1 |
| | |||||
* | Revert commit 3e843ab3358. Closes #14930. | Dominik Picheta | 2020-07-07 | 1 | -1/+1 |
| | |||||
* | init checks and 'out' parameters (#14521) | Andreas Rumpf | 2020-06-23 | 1 | -8/+10 |
| | | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog | ||||
* | Remove deprecated stuff from stdlib (#14699) | Miran | 2020-06-17 | 1 | -171/+4 |
| | | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff | ||||
* | Added --benchmarkVM to times.cpuTime() documentation (#14663) | Ico Doornekamp | 2020-06-15 | 1 | -0/+2 |
| | |||||
* | Make the fields of `times.DateTime` private (#14197) | Oscar Nihlgård | 2020-05-06 | 1 | -76/+180 |
| | | | | | * Make the fields of `times.DateTime` private * PR fixes | ||||
* | move since from inclrtl to std/private/since (#14188) | hlaaftana | 2020-05-02 | 1 | -1/+2 |
| | | | | * move since from inclrtl to std/private/since * move since import in system below for HCR | ||||
* | Remove some deprecated procs from std/times (#14129) | Oscar Nihlgård | 2020-04-27 | 1 | -143/+31 |
| | |||||
* | Times refactorings (#13949) | Oscar Nihlgård | 2020-04-21 | 1 | -753/+778 |
| | |||||
* | fix https://github.com/nim-lang/RFCs/issues/211: `var a: DateTime` compiles ↵ | Timothee Cour | 2020-04-18 | 1 | -3/+10 |
| | | | | | | | and is usable (#14002) [backport:1.2] * fix https://github.com/nim-lang/RFCs/issues/211: `var a: DateTime` works * assertValidDate checks for sentinel month | ||||
* | refs #13797 (#13812) | Timothee Cour | 2020-03-31 | 1 | -1/+1 |
| | |||||
* | fixes #13558: toDateTime buggy on 29th, 30th and 31th of each month; ↵ | Timothee Cour | 2020-03-11 | 1 | -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 Cour | 2020-03-01 | 1 | -0/+13 |
| | |||||
* | Add sideEffect pragma to importC procs in posix, winlean and time module ↵ | Tomohiro | 2020-02-08 | 1 | -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] | Milan | 2020-01-22 | 1 | -1/+1 |
| | |||||
* | fixes a critical times.nim bug reported on IRC [backport] (#13216) | Andreas Rumpf | 2020-01-21 | 1 | -2/+3 |
| | |||||
* | times: toUnixFloat, fromUnixFloat (#13044) | Timothee Cour | 2020-01-18 | 1 | -9/+28 |
| | |||||
* | style fix: change 'JS' to 'js' to make it consistent (#13168) | Miran | 2020-01-16 | 1 | -7/+7 |
| | |||||
* | [minor] fix doc for $(Time) (#12795) [backport] | Timothee Cour | 2019-12-03 | 1 | -1/+1 |
| | |||||
* | fix documentation of `$`*(dt: DateTime) (#12660) | David Krause | 2019-11-15 | 1 | -1/+1 |
| | | | | (cherry picked from commit 39122ecd93854dd696aad2a5a0a5ad04d6dcdbfa) | ||||
* | [backport] run nimpretty on the remaining files | narimiran | 2019-09-30 | 1 | -74/+88 |
| | |||||
* | Fix spellings (#12277) [backport] | Federico Ceratto | 2019-09-27 | 1 | -4/+4 |
| | |||||
* | makes tests green again | Andreas Rumpf | 2019-09-21 | 1 | -9/+9 |
| | |||||
* | Add std/monotimes which implements monotonic timestamps (#11712) | Andreas Rumpf | 2019-07-15 | 1 | -9/+16 |
|\ | | | | | | | | | | | * [feature] Added std/monotimes * [other] Minor optimization in times | ||||
| * | [other] Minor optimization in times | Oscar Nihlgård | 2019-07-12 | 1 | -9/+12 |
| | | |||||
| * | [feature] Added std/monotimes | Oscar Nihlgård | 2019-07-12 | 1 | -0/+4 |
| | | |||||
* | | times: use posix constant instead of import (#11692) | Jacek Sieka | 2019-07-13 | 1 | -9/+4 |
|/ | | | | | | * times: use posix constant instead of import * simplify clock id usage | ||||
* | there is only one style -- my style | Araq | 2019-07-10 | 1 | -0/+8 |
| | |||||
* | styleCheck: make the compiler and large parts of the stdlib compatible with ↵ | Araq | 2019-07-10 | 1 | -12/+12 |
| | | | | --styleCheck:error | ||||
* | ABI fixes for OSX/BSD; fixes #6860 (#11666) | Andreas Rumpf | 2019-07-06 | 1 | -1/+1 |
| | |||||
* | Documentation improvements to the times module (#11639) | Graeme Cross | 2019-07-03 | 1 | -27/+27 |
| | | | | | * Typo and grammar fixes for the times module * Minor typo fixes to the times module | ||||
* | fixes #7167 (#11300) | Andreas Rumpf | 2019-05-22 | 1 | -1/+1 |
| | | | | | | * fixes #7167 * spec: distinct types can be ordinal types * bootstrapping issue | ||||
* | getDateStr and getClockStr takes a default parameter (#11108) | liuxiaodong | 2019-05-21 | 1 | -4/+6 |
| | |||||
* | make epochTime available in DLLs; refs #6855 | Araq | 2019-05-10 | 1 | -50/+49 |
| | |||||
* | Allow for locale-based parsing/formatting of dates (#11170) | Matt Haggard | 2019-05-08 | 1 | -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ård | 2019-04-24 | 1 | -1/+1 |
| | |||||
* | Fix header inconsistencies in documentation (#11071) | Zed | 2019-04-23 | 1 | -6/+7 |
| |