| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
* Add simple test case
Just so the regression doesn't happen again
* Specify initDateTime is gcsafe in the forward declarations
|
|
|
|
|
|
|
|
|
| |
* use TimeInterval instead of Duration for calculating ISO week date
hopefully actually fixes (space) #22059
* forward declare
* explicit effects
|
|
|
| |
fixes #22059
|
|
|
|
|
| |
* .
* Improve times
|
|
|
|
|
| |
* parsing capability for iso week year
* remove outdated test
|
|
|
|
|
|
|
|
|
|
|
| |
* int64/uint64 as bigint in JS
* fix CI
* convert to compile option
* fix lie
* smaller diff, changelog entry
|
|
|
|
|
|
|
|
|
| |
* Remove Defect from raises list
Since defects aren't tracked anymore this causes a hint to pop up mentioning it
* Still track Defect when getting ran with an older Nim version
The raises followed a pattern so moving them into a pragma didn't seem to cause any extra problems
|
|
|
|
|
|
|
| |
* Add test case
* Remove formatValue template for `Time`
It didn't handle empty specifier correctly which caused it to be blank with strformat
|
|
|
|
|
| |
* fix #21045 getTime with vmopsDanger is broken; alternative to #21054
* typo
|
|
|
| |
fix #16264 regression(0.18.0 => devel): import times; echo low(Time) gives OverflowDefect
|
|
|
|
|
| |
Based on what I understand from [Wikipedia](https://en.wikipedia.org/wiki/ISO_week_date#Weeks_per_year), 2001 does not have 53 weeks, but 2004, 2009, 2015, 2020 do. The years 2000 and 2001 seem to be copy pasted from the `getDaysInYear` example above. The result of `getWeeksInIsoYear` also seem to match up with Wikipedia.
That means these runnableExamples were never tested. Why is this the case? I only discovered this in #20091.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
* address comments
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* [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 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>
|
|
|
|
| |
colons (#17318)
|
|
|
| |
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
|
| |
|
|
|
|
| |
* "eg" is a misspelled "egg", "e.g." is "exempli gratia"
* Also, "ie" is "i.e.".
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* update to the latest Jester
* remove deprecated procs from some stdlib modules
* 'criterion' is not maintained anymore and relies on obsolete stuff
|
| |
|
|
|
|
|
| |
* Make the fields of `times.DateTime` private
* PR fixes
|
|
|
|
| |
* move since from inclrtl to std/private/since
* move since import in system below for HCR
|
| |
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
breaking change: do not use `now` to compute result, was undocumented and non-sensical (#13565)
|
| |
|
|
|
|
|
|
|
|
|
| |
(#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
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
(cherry picked from commit 39122ecd93854dd696aad2a5a0a5ad04d6dcdbfa)
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| | |
* [feature] Added std/monotimes
* [other] Minor optimization in times
|
| | |
|