forked from sebres/tclclockmod
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge upstream #10
Merged
Merged
Merge upstream #10
+3,833
−1,792
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…g of tcl-core clock scans for JulianDay per default (5373484 = "9999-12-31 23:59:59")
… wide to string using `_witoaw(buf, -1, '0', 1)` caused mistakenly 10-chars padding).
… callback, as well as don't do the back-conversion from int to string (output inside fmtproc) - switch to CFMTT_PROC token type.
…mall times, B.C.E. between 4714 and 4713), added test-cases covering that.
…core compatibility (7x 0-padding, affected in B.C.E. only): `clock format -210866803200 -format %J -gmt 1` results into `0000000`.
…, corresponds julian date of sqlite-database. In opposite to calendar julian day `%J`, it starts the day at noon (and can parse float, so contains a time fraction). **TODO** implement `clock format ... -format %Ej` and test-cases for format of this token. **TODO** implement `%EJ` token for calendar JD with time fraction.
… fraction (in opposite to astronomical JD `%Ej` it starts at midnight like `%J` token).
…l JD `%Ej`) with time fraction.
Astronomical and calendar JDN/JD with time fraction
…to use same flags as by formatted scan instead of members like yyHave...); (additionally allocates info->messages object on demand, if free scan fails)
Simplifying info structure, yacc rules and flags
…om build directory)
The reason for that was the wrong length calculation by scanning through my string index tree, so the ambiguity check `j->(jan,ju->(jun,jul))` failed for 2nd element Ju(ne) with length 2. Simple fix and test-cases covering that, but it looks like this has a good potential for speedup (todo: move length calculation from search to build)
…(for tcl >= 8.6.9)
…n ambiguous short forms of month) too
…m (before_install instead of before_script)
…er that prefers it from tcl-core library)
…ocale/msgcat, etc) could overwrite interp state (errorInfo/errorCode)
…e of interp state by select and setup timezone (as well as in other "catched" blocks on lazy loading or initialization); windows: load registry package on demand only (if possible, using same safe "catch" command).
…allel), different tcl-versions (bionic/disco)
…culation on negative month offset over threshold of a year
…lock-6.10e/clock-6.10f): rewritten with common str2int now
…ens are optional, repaired greedy search (minLen), which finds a space besides of start of next token now; it is also more consistent than old engine now (covered by clock-44.4)
closes ticket [a858d95f4bfddafb]: adjust word-token pointer after possible realloc
…n) must cause day increment; clock.test: more regression tests
…timated value with input value)
…malized input value after scan, Sun is always 7 now); more tests for valid days of weeks covering also format scan with different weekday formats (%a, %u, %w)
…ept `now` as clock value (value `-now` retained to compat reasons to earlier versions and tclclockmod, undocumented at the moment) back-porting from https://core.tcl-lang.org/tcl/ci/f602e32fc3
…trapv (__GNUC__ is also defined by clang)
…37beffbace823]): - usage of time zones `Etc/GMT±n` is allowed now (were impossible previously due to incorrect prevention of path escape for the tzdata directory); - test coverage (test clock-59.2)
…::ReportToMaster/ReportFromSlave got renamed to ::tcltest::ReportToParent/ReportFromChild in 8.6.11
…offset-TZ like +0200 correctly, and it'd be released with 8.6.16+)
Loading status checks…
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Merges changes made in upstream repo back into our fork.
BCK-10142