summaryrefslogtreecommitdiffstats
path: root/library/clock.tcl
Commit message (Collapse)AuthorAgeFilesLines
* [interim-merge-commit] back-ported branch sebres-clock-speedup (from trunk ↵sebres2017-05-101-2680/+160
|\ | | | | | | to 8.6): tcl-clock functionality rewritten in C.
| * amend lost changes after rebase to fossilsebres2017-01-101-0/+1
| |
| * "clock add" rewritten in C, using common functionality of "clock scan" (and ↵sebres2017-01-101-328/+0
| | | | | | | | | | | | freescan)... test-performance.tcl: test cases extended to cover "clock add"
| * clock.tcl: clean unused resp. obsolete commandssebres2017-01-101-2159/+5
| |
| * [temp-commit]: format almost ready (missing some tokens)sebres2017-01-101-1/+1
| |
| * cacheable conversions Local2UTC / UTC2Local fixed (some TZ switches time ↵sebres2017-01-101-14/+0
| | | | | | | | | | | | seconds bound) and optimized (last period ranges saved); prepare to back-port clock format
| * bug fix by match word token (FindWordEnd fixed);sebres2017-01-101-2/+6
| | | | | | | | repaired current locale switch
| * repaired system/current locale caching (also for legacy clock format) and ↵sebres2017-01-101-11/+13
| | | | | | | | legacy timezone cached as last
| * scan format: several tokens implemented, bug fixing and code review;sebres2017-01-101-4/+33
| | | | | | | | precedence yyyymmdd over yyyyddd was changed (and re-covered in test-cases also), see http://core.tcl.tk/tcl/tktview/e7a722cd3573fedda5d1e528f95902776f996e06
| * improve LocalizeFormat, internal caching of localized formats inside msgcat ↵sebres2017-01-101-7/+12
| | | | | | | | | | | | | | for locale and format objects smart reference introduced in dict (smart pointer with 0 object reference but increase dict-reference, provide changeable locale dict) code review
| * improve LocalizeFormat, internal caching of localized formats inside msgcat ↵sebres2017-01-101-29/+54
| | | | | | | | | | | | for locale and format objects smart reference introduced in dict (smart pointer with 0 object reference but increase dict-reference, provide changeable locale dict)
| * l10n (with caching) implemented, msgcat package optimized, code review, etc.sebres2017-01-101-27/+52
| |
| * amend for caching of UTC2Local / Local2UTC:sebres2017-01-101-17/+17
| | | | | | | | | | * tzdata used internally only (because cached, replaced with timezone object as parameter for several functions) * small improvement (don't need to convert UTC to UTC)
| * [temp-commit]: code review, DST-hole mistake by scan with relative time ↵sebres2017-01-101-7/+6
| | | | | | | | | | | | resolved; caching of UTC2Local / Local2UTC cherry picked
| * [temp-commit]: ClockFreeScan back-ported (cherry picked), all tests case ↵sebres2017-01-101-3/+9
| | | | | | | | | | | | | | passed + several new test-cases for bug fixing implemented here; environment epoch ported, several fixes for the time zone / tzdata caching ported; mem-leak fix + memory leak test cases passed
| * [temp-commit]: ClockFreeScan ready, test case passed (2 failure because of ↵sebres2017-01-101-194/+4
| | | | | | | | wrong :localtime zone by TZ-switch, to be fixed)
| * [temp-commit]: ClockFreeScan almost ready, test-performance cases mergedsebres2017-01-101-33/+42
| |
| * [temp-commit]: clock scan with several optimization porting, still not-readysebres2017-01-101-6/+13
| |
| * 1st try to rewrite clock in Csebres2017-01-101-2/+4
| |
| * Make sure that adding 0 weekdays doesn't result in going back in timegahr2016-02-231-0/+4
| |
| * [5f71353740] Support the "weekdays" unit in [clock add]gahr2016-02-171-4/+52
| |
* | Another attempt to fix the two executable flags.jan.nijtmans2017-04-121-0/+0
|/
* Change "clock format -format %x -locale current" output on msgcat locale ↵oehhar2015-10-211-0/+36
| | | | change [4a0c163d24]
* "mcpackagelocale present" is more elegantoehhar2015-06-301-1/+1
|
* [TIP 412] msgcat dynamic locale change and package private locale (msgcat 1.6.0)oehhar2015-06-291-98/+36
|\
| * clock.tcl modified that all clock tests passoehhar2015-05-311-12/+5
| |
| * merge trunkoehhar2015-05-311-601/+493
| |\ | |/ |/|
| * clock uses new msgcat featuresoehhar2012-09-201-575/+628
| |
* | [f0f876c141] Improve consistency in error messages.dkf2014-06-171-4/+4
| |
* | Never guess non-existing timezone name "America/Brasilia" on Windows. ↵jan.nijtmans2013-08-111-1/+1
|\ \ | | | | | | | | | Reported by Arnulf Wiedemann
| * | Never guess non-existing timezone name "America/Brasilia" on Windows. ↵jan.nijtmans2013-08-111-1/+1
| | | | | | | | | | | | Reported by Arnulf Wiedemann
* | | Fix [34538ba43f]jan.nijtmans2013-06-271-1/+1
|\ \ \ | |/ / | | / | |/ |/|
| * Fix [34538ba43f]jan.nijtmans2013-06-271-1/+1
| |
* | Fix loading of timezones where one abbreviation is a proper suffix of ↵Kevin B Kenny2012-01-081-3/+5
|\ \ | |/ | | | | another [Bug 3470928]
| * Fix loading of timezones where one abbreviation is a proper suffix of ↵Kevin B Kenny2012-01-081-3/+5
| | | | | | | | another [Bug 3470928]
| * Don't cache the system timezone when it was derived from TCL_TZ or TZ.max2011-10-181-11/+16
| |
* | Don't cache the system timezone when it was derived from TCL_TZ or TZ.max2011-10-181-11/+16
| |
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| | | | | | more harm than good. Purged them.
| * * library/clock.tcl (LocalizeFormat):Kevin B Kenny2009-10-291-19/+22
| | | | | | | | | | | | * tests/clock.test (clock-67.1): Corrected a problem where '%%' followed by a letter in a format group could expand recursively: %%R would turn into %%H:%M:%S. [Bug 2819334]
| * * library/clock.tcl (ParseClockScanFormat):Kevin B Kenny2009-10-271-11/+15
| | | | | | | | | | | | | | | | Corrected a problem where [clock scan] didn't load the timezone soon enough when processing a time format that lacked a complete date. [Bug 2886852] * tests/clock.test (clock-66.1): Added a test case for the above bug.
| * * library/clock.tcl (ProcessPosixTimeZone):Kevin B Kenny2009-10-241-3/+11
| | | | | | | | | | | | | | | | | | | | | | Corrected a regression in the fix to [Bug 2207436] that caused [clock] to apply EU daylight saving time rules in the US. Thanks to Karl Lehenbauer for reporting this regression. * tests/clock.test (clock-52.4): Added a regression test for the above bug. * library/tzdata/Asia/Dhaka: * library/tzdata/Asia/Karachi: New DST rules for Bangladesh and Pakistan. (Olson's tzdata2009o.)
| * * generic/tclGetDate.y: Fixed a thread safety bug in the generatedKevin B Kenny2009-06-091-2/+2
| | | | | | | | | | | | | | | | | | | | * library/clock.tcl: Bison parser (needed a %pure-parser * tests/clock.test: declaration to avoid static variables). Discovered that the %pure-parser declaration allowed for returning the Bison error message to the Tcl caller in the event of a syntax error, so did so. * generic/tclDate.c: bison 2.3
| * * library/clock.tcl (tcl::clock::add): Fixed error message formattingKevin B Kenny2009-01-031-3/+3
| | | | | | | | | | | | in the case where [clock add] is presented with a bad switch. * tests/clock.test (clock-65.1) Added a test case for the above problem [Bug 2481670].
| * Fix time change in Eastern Europe (not 3:00 but 4:00 local time)nijtmans2008-12-121-3/+3
| | | | | | | | [Bug 2207436]
| * Fallback to European time zone DST rules, when the timezone isnijtmans2008-12-111-7/+26
| | | | | | | | between 0 and -12 [Bug 2207436].
| * * library/clock.tcl (format, ParseClockScanFormat): Added aKevin B Kenny2008-11-301-3/+5
| | | | | | | | | | | | | | [string map] to get rid of namespace delimiters before caching a scan or format procedure [Bug 2362156]. * tests/clock.test (clock-64.[12]): Added test cases for the bug that was tickled by a namespace delimiter inside a format string.
| * fix typo: s/ZoneinfoFile/LoadZoneinfoFile/das2008-11-011-2/+2
| |
* | Corrected case of trap patterndkf2010-02-091-2/+2
| |
* | Undo Jan's needless vandalism.dkf2009-11-191-9/+11
| |